config.yml 1.26 KB
Newer Older
Julien Chaumond's avatar
Julien Chaumond committed
1
2
version: 2
jobs:
3
    build_py3:
thomwolf's avatar
thomwolf committed
4
        working_directory: ~/pytorch-transformers
Julien Chaumond's avatar
Julien Chaumond committed
5
        docker:
6
            - image: circleci/python:3.5
7
        resource_class: large
8
        parallelism: 4
Julien Chaumond's avatar
Julien Chaumond committed
9
10
11
        steps:
            - checkout
            - run: sudo pip install --progress-bar off .
thomwolf's avatar
thomwolf committed
12
13
            - run: sudo pip install pytest codecov pytest-cov
            - run: sudo pip install spacy ftfy==4.4.3
thomwolf's avatar
thomwolf committed
14
            - run: sudo python -m spacy download en
thomwolf's avatar
thomwolf committed
15
            - run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
16
            - run: python -m pytest -sv ./examples/
thomwolf's avatar
thomwolf committed
17
            - run: codecov
18
    build_py2:
thomwolf's avatar
thomwolf committed
19
        working_directory: ~/pytorch-transformers
20
        resource_class: large
21
        parallelism: 4
22
23
24
25
26
        docker:
            - image: circleci/python:2.7
        steps:
            - checkout
            - run: sudo pip install --progress-bar off .
thomwolf's avatar
thomwolf committed
27
28
            - run: sudo pip install pytest codecov pytest-cov
            - run: sudo pip install spacy ftfy==4.4.3
thomwolf's avatar
thomwolf committed
29
            - run: sudo python -m spacy download en
thomwolf's avatar
thomwolf committed
30
            - run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
31
            - run: python -m pytest -sv ./examples/
thomwolf's avatar
thomwolf committed
32
            - run: codecov
33
34
35
36
37
38
workflows:
  version: 2
  build_and_test:
    jobs:
      - build_py3
      - build_py2