2018-12-21 05:33:39 +08:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2019-09-24 19:25:50 +08:00
|
|
|
build_py3_torch_and_tf:
|
2019-09-26 16:15:53 +08:00
|
|
|
working_directory: ~/transformers
|
2019-09-24 19:25:50 +08:00
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.5
|
|
|
|
resource_class: xlarge
|
|
|
|
parallelism: 1
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: sudo pip install torch
|
2019-10-10 21:57:35 +08:00
|
|
|
- run: sudo pip install tensorflow
|
2019-09-24 19:25:50 +08:00
|
|
|
- run: sudo pip install --progress-bar off .
|
|
|
|
- run: sudo pip install pytest codecov pytest-cov
|
|
|
|
- run: sudo pip install tensorboardX scikit-learn
|
2019-09-26 16:15:53 +08:00
|
|
|
- run: python -m pytest -sv ./transformers/tests/ --cov
|
2019-09-24 19:25:50 +08:00
|
|
|
- run: codecov
|
2019-09-05 16:23:04 +08:00
|
|
|
build_py3_torch:
|
2019-09-26 16:15:53 +08:00
|
|
|
working_directory: ~/transformers
|
2018-12-21 05:33:39 +08:00
|
|
|
docker:
|
2019-02-06 07:25:12 +08:00
|
|
|
- image: circleci/python:3.5
|
2019-09-03 00:35:14 +08:00
|
|
|
resource_class: xlarge
|
2019-08-31 08:33:16 +08:00
|
|
|
parallelism: 1
|
2018-12-21 05:33:39 +08:00
|
|
|
steps:
|
|
|
|
- checkout
|
2019-09-05 16:23:04 +08:00
|
|
|
- run: sudo pip install torch
|
2018-12-21 05:33:39 +08:00
|
|
|
- run: sudo pip install --progress-bar off .
|
2019-09-05 17:20:56 +08:00
|
|
|
- run: sudo pip install pytest codecov pytest-cov
|
2019-07-12 04:36:35 +08:00
|
|
|
- run: sudo pip install tensorboardX scikit-learn
|
2019-09-26 16:15:53 +08:00
|
|
|
- run: python -m pytest -sv ./transformers/tests/ --cov
|
2019-09-05 16:23:04 +08:00
|
|
|
- run: python -m pytest -sv ./examples/
|
|
|
|
- run: codecov
|
|
|
|
build_py3_tf:
|
2019-09-26 16:15:53 +08:00
|
|
|
working_directory: ~/transformers
|
2019-09-05 16:23:04 +08:00
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.5
|
|
|
|
resource_class: xlarge
|
|
|
|
parallelism: 1
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-10-10 21:57:35 +08:00
|
|
|
- run: sudo pip install tensorflow
|
2019-09-05 16:23:04 +08:00
|
|
|
- run: sudo pip install --progress-bar off .
|
2019-09-05 17:20:56 +08:00
|
|
|
- run: sudo pip install pytest codecov pytest-cov
|
2019-09-05 16:23:04 +08:00
|
|
|
- run: sudo pip install tensorboardX scikit-learn
|
2019-09-26 16:15:53 +08:00
|
|
|
- run: python -m pytest -sv ./transformers/tests/ --cov
|
2019-04-30 17:05:26 +08:00
|
|
|
- run: codecov
|
2019-09-05 16:23:04 +08:00
|
|
|
build_py2_torch:
|
2019-09-26 16:15:53 +08:00
|
|
|
working_directory: ~/transformers
|
2019-07-10 06:50:59 +08:00
|
|
|
resource_class: large
|
2019-08-31 08:33:16 +08:00
|
|
|
parallelism: 1
|
2019-02-06 07:25:12 +08:00
|
|
|
docker:
|
|
|
|
- image: circleci/python:2.7
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-09-05 16:23:04 +08:00
|
|
|
- run: sudo pip install torch
|
2019-02-06 07:25:12 +08:00
|
|
|
- run: sudo pip install --progress-bar off .
|
2019-09-05 17:20:56 +08:00
|
|
|
- run: sudo pip install pytest codecov pytest-cov
|
2019-09-26 16:15:53 +08:00
|
|
|
- run: python -m pytest -sv ./transformers/tests/ --cov
|
2019-09-05 16:23:04 +08:00
|
|
|
- run: codecov
|
|
|
|
build_py2_tf:
|
2019-09-26 16:15:53 +08:00
|
|
|
working_directory: ~/transformers
|
2019-09-05 16:23:04 +08:00
|
|
|
resource_class: large
|
|
|
|
parallelism: 1
|
|
|
|
docker:
|
|
|
|
- image: circleci/python:2.7
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-10-10 21:57:35 +08:00
|
|
|
- run: sudo pip install tensorflow
|
2019-09-05 16:23:04 +08:00
|
|
|
- run: sudo pip install --progress-bar off .
|
2019-09-05 17:20:56 +08:00
|
|
|
- run: sudo pip install pytest codecov pytest-cov
|
2019-09-26 16:15:53 +08:00
|
|
|
- run: python -m pytest -sv ./transformers/tests/ --cov
|
2019-04-30 17:05:26 +08:00
|
|
|
- run: codecov
|
2019-08-30 00:14:29 +08:00
|
|
|
deploy_doc:
|
2019-09-26 16:15:53 +08:00
|
|
|
working_directory: ~/transformers
|
2019-08-30 00:14:29 +08:00
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.5
|
|
|
|
steps:
|
|
|
|
- add_ssh_keys:
|
|
|
|
fingerprints:
|
|
|
|
- "5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71"
|
|
|
|
- checkout
|
2019-08-31 08:36:26 +08:00
|
|
|
- run: sudo pip install --progress-bar off -r docs/requirements.txt
|
|
|
|
- run: sudo pip install --progress-bar off -r requirements.txt
|
2019-08-30 00:14:29 +08:00
|
|
|
- run: cd docs && make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html/* $doc:$dir
|
|
|
|
workflow_filters: &workflow_filters
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2019-02-06 07:25:12 +08:00
|
|
|
workflows:
|
2019-08-30 00:14:29 +08:00
|
|
|
version: 2
|
|
|
|
build_and_test:
|
|
|
|
jobs:
|
2019-09-24 19:27:45 +08:00
|
|
|
- build_py3_torch_and_tf
|
2019-09-05 16:23:04 +08:00
|
|
|
- build_py3_torch
|
|
|
|
- build_py3_tf
|
|
|
|
- build_py2_torch
|
|
|
|
- build_py2_tf
|
2019-08-30 00:14:29 +08:00
|
|
|
- deploy_doc: *workflow_filters
|