config.yml 893 Bytes
Newer Older
Julien Chaumond's avatar
Julien Chaumond committed
1
2
version: 2
jobs:
3
    build_py3:
Julien Chaumond's avatar
Julien Chaumond committed
4
5
        working_directory: ~/pytorch-pretrained-BERT
        docker:
6
            - image: circleci/python:3.5
Julien Chaumond's avatar
Julien Chaumond committed
7
8
9
        steps:
            - checkout
            - run: sudo pip install --progress-bar off .
thomwolf's avatar
thomwolf committed
10
            - run: sudo pip install pytest ftfy spacy
thomwolf's avatar
thomwolf committed
11
            - run: sudo python -m spacy download en
Julien Chaumond's avatar
Julien Chaumond committed
12
            - run: python -m pytest -sv tests/
13
14
15
16
17
18
19
    build_py2:
        working_directory: ~/pytorch-pretrained-BERT
        docker:
            - image: circleci/python:2.7
        steps:
            - checkout
            - run: sudo pip install --progress-bar off .
thomwolf's avatar
thomwolf committed
20
21
22
            - run: sudo pip install pytest spacy
            - run: sudo pip install ftfy==4.4.3
            - run: sudo python -m spacy download en
23
24
25
26
27
28
29
            - run: python -m pytest -sv tests/
workflows:
  version: 2
  build_and_test:
    jobs:
      - build_py3
      - build_py2