Kaynağa Gözat

Delete .circleci directory

Jon Janzen 2 yıl önce
ebeveyn
işleme
61d8afd17a

+ 0 - 18
.circleci/cmake_test.sh

@@ -1,18 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-RESULTDIR=result
-DATADIR=data
-
-./.circleci/pull_data.sh
-mkdir buildc && cd buildc && cmake .. && make && cd ..
-cp buildc/fasttext .
-./fasttext supervised -input "${DATADIR}/dbpedia.train" -output "${RESULTDIR}/dbpedia" -dim 10 -lr 0.1 -wordNgrams 2 -minCount 1 -bucket 10000000 -epoch 5 -thread 4 -verbose 0
-./fasttext test "${RESULTDIR}/dbpedia.bin" "${DATADIR}/dbpedia.test"
-./fasttext predict "${RESULTDIR}/dbpedia.bin" "${DATADIR}/dbpedia.test" > "${RESULTDIR}/dbpedia.test.predict"

+ 0 - 196
.circleci/config.yml

@@ -1,196 +0,0 @@
-# Python CircleCI 2.0 configuration file
-#
-# Check https://circleci.com/docs/2.0/language-python/ for more details
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-# Maybe one day this will work
-#   "mac":
-#     macos:
-#       xcode: "9.0"
-#     working_directory: ~/repo
-#     steps:
-#       - checkout
-#       - run:
-#           command: |
-#             . .circleci/cmake_test.sh
-
-version: 2
-jobs:
-  "py368":
-    docker:
-      - image: circleci/python:3.6.8
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_circleimg.sh
-            . .circleci/python_test.sh
-
-
-  "py357":
-    docker:
-      - image: circleci/python:3.5.7
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_circleimg.sh
-            . .circleci/python_test.sh
-
-  "py3410":
-    docker:
-      - image: circleci/python:3.4.10
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_circleimg.sh
-            . .circleci/python_test.sh
-
-  "py2715":
-    docker:
-      - image: circleci/python:2.7.15
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_circleimg.sh
-            . .circleci/python_test.sh
-
-  "gcc5":
-    docker:
-      - image: gcc:5
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/gcc_test.sh
-
-  "gcc6":
-    docker:
-      - image: gcc:6
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/gcc_test.sh
-
-  "gcc7":
-    docker:
-      - image: gcc:7
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/gcc_test.sh
-
-  "gcclatest":
-    docker:
-      - image: gcc:latest
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/gcc_test.sh
-
-  "debian-stretch-gcc":
-    docker:
-      - image: debian:stretch
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_debian.sh
-            . .circleci/gcc_test.sh
-
-  "debian-stretch-cmake":
-    docker:
-      - image: debian:stretch
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_debian.sh
-            . .circleci/cmake_test.sh
-
-  "debian-stretch-python":
-    docker:
-      - image: debian:stretch
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_debian.sh
-            pip install .
-            python runtests.py -u
-
-  "debian-jessie-gcc":
-    docker:
-      - image: debian:jessie
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_debian.sh
-            . .circleci/gcc_test.sh
-
-  "debian-jessie-cmake":
-    docker:
-      - image: debian:jessie
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            . .circleci/setup_debian.sh
-            . .circleci/cmake_test.sh
-
-  "website-build":
-    docker:
-      - image: node:latest
-    working_directory: ~/repo
-    steps:
-      - checkout
-      - run:
-          command: |
-            git config --global user.email "[email protected]"
-            git config --global user.name "Website Deployment Script"
-            echo "machine github.com login docusaurus-bot password $GITHUB_TOKEN_DOCUSAURUS_BOT" > ~/.netrc
-            cd website && npm install && GIT_USER=docusaurus-bot npm run publish-gh-pages
-
-workflows:
-  version: 2
-  build:
-    jobs:
-      - "py368"
-      - "py357"
-      - "py3410"
-      - "py2715"
-      - "gcc5"
-      - "gcc6"
-      - "gcc7"
-      - "gcclatest"
-      - "website-build"
-      - "debian-stretch-gcc"
-      - "debian-stretch-cmake"
-      - "debian-stretch-python"
-      - "debian-jessie-gcc"
-      - "debian-jessie-cmake"

+ 0 - 25
.circleci/gcc_test.sh

@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-RESULTDIR=result
-DATADIR=data
-
-./.circleci/pull_data.sh
-make opt
-./fasttext supervised -input "${DATADIR}/dbpedia.train" -output "${RESULTDIR}/dbpedia" -dim 10 -lr 0.1 -wordNgrams 2 -minCount 1 -bucket 10000000 -epoch 5 -thread 4 -verbose 0
-./fasttext test "${RESULTDIR}/dbpedia.bin" "${DATADIR}/dbpedia.test"
-./fasttext predict "${RESULTDIR}/dbpedia.bin" "${DATADIR}/dbpedia.test" > "${RESULTDIR}/dbpedia.test.predict"
-
-make clean
-make debug
-./fasttext supervised -input "${DATADIR}/dbpedia.train" -output "${RESULTDIR}/dbpedia" -dim 10 -lr 0.1 -wordNgrams 2 -minCount 1 -bucket 10000000 -epoch 5 -thread 4 -verbose 0
-./fasttext test "${RESULTDIR}/dbpedia.bin" "${DATADIR}/dbpedia.test"
-./fasttext predict "${RESULTDIR}/dbpedia.bin" "${DATADIR}/dbpedia.test" > "${RESULTDIR}/dbpedia.test.predict"
-
-

+ 0 - 11
.circleci/pip_test.sh

@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-sudo pip install --index-url https://test.pypi.org/simple/ fasttext
-python runtests.py -u

+ 0 - 33
.circleci/pull_data.sh

@@ -1,33 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-myshuf() {
-  perl -MList::Util=shuffle -e 'print shuffle(<>);' "$@";
-}
-
-normalize_text() {
-  tr '[:upper:]' '[:lower:]' | sed -e 's/^/__label__/g' | \
-    sed -e "s/'/ ' /g" -e 's/"//g' -e 's/\./ \. /g' -e 's/<br \/>/ /g' \
-        -e 's/,/ , /g' -e 's/(/ ( /g' -e 's/)/ ) /g' -e 's/\!/ \! /g' \
-        -e 's/\?/ \? /g' -e 's/\;/ /g' -e 's/\:/ /g' | tr -s " " | myshuf
-}
-
-RESULTDIR=result
-DATADIR=data
-
-mkdir -p "${RESULTDIR}"
-mkdir -p "${DATADIR}"
-
-if [ ! -f "${DATADIR}/dbpedia.train" ]
-then
-  wget -c "https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k" -O "${DATADIR}/dbpedia_csv.tar.gz"
-  tar -xzvf "${DATADIR}/dbpedia_csv.tar.gz" -C "${DATADIR}"
-  cat "${DATADIR}/dbpedia_csv/train.csv" | normalize_text > "${DATADIR}/dbpedia.train"
-  cat "${DATADIR}/dbpedia_csv/test.csv" | normalize_text > "${DATADIR}/dbpedia.test"
-fi

+ 0 - 11
.circleci/python_test.sh

@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-sudo pip install .
-python runtests.py -u

+ 0 - 13
.circleci/run_locally.sh

@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-# This script illustrates how to run the build tests locally
-# This requires docker
-
-tail -n 15 .circleci/config.yml | sed s/.\\+\"\\\(\.\\+\\\)\"/\\1/g | xargs -P 4 -o -I {} bash -c "circleci build --job {} && (>&2 echo "{}")" > /dev/null

+ 0 - 11
.circleci/setup_circleimg.sh

@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-sudo apt-get update
-sudo apt-get install -y cmake python-pip python-dev build-essential

+ 0 - 11
.circleci/setup_debian.sh

@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-#
-# Copyright (c) 2016-present, Facebook, Inc.
-# All rights reserved.
-#
-# This source code is licensed under the MIT license found in the
-# LICENSE file in the root directory of this source tree.
-#
-
-apt-get update
-apt-get install -y vim g++ make cmake wget git python-pip python-dev build-essential