Skip to content

Commit

Permalink
Remove TravisCI (#3137)
Browse files Browse the repository at this point in the history
* Remove TravisCI

Add hub tests to CircleCI, coverage and ONNX are still missing

* Install torchvision dependencies on CI
  • Loading branch information
fmassa authored Dec 8, 2020
1 parent 325dfd6 commit 6cb4fc2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 65 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@ jobs:
sudo mv clang-format /opt/clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format
torchhub_test:
docker:
- image: circleci/python:3.7
steps:
- checkout
- run:
command: |
pip install --user --progress-bar off numpy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# need to install torchvision dependencies due to transitive imports
pip install --user --progress-bar off --editable .
python test/test_hub.py
binary_linux_wheel:
<<: *binary_common
docker:
Expand Down Expand Up @@ -1060,6 +1073,7 @@ workflows:
- python_lint
- python_type_check
- clang_format
- torchhub_test

unittest:
jobs:
Expand Down Expand Up @@ -1174,6 +1188,7 @@ workflows:
- python_lint
- python_type_check
- clang_format
- torchhub_test
- binary_linux_wheel:
cu_version: cpu
filters:
Expand Down
15 changes: 15 additions & 0 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@ jobs:
sudo mv clang-format /opt/clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format

torchhub_test:
docker:
- image: circleci/python:3.7
steps:
- checkout
- run:
command: |
pip install --user --progress-bar off numpy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# need to install torchvision dependencies due to transitive imports
pip install --user --progress-bar off --editable .
python test/test_hub.py

binary_linux_wheel:
<<: *binary_common
docker:
Expand Down Expand Up @@ -686,6 +699,7 @@ workflows:
- python_lint
- python_type_check
- clang_format
- torchhub_test

unittest:
jobs:
Expand All @@ -702,6 +716,7 @@ workflows:
- python_lint
- python_type_check
- clang_format
- torchhub_test
{{ build_workflows(prefix="nightly_", filter_branch="nightly", upload=True) }}
docker_build:
triggers:
Expand Down
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

0 comments on commit 6cb4fc2

Please sign in to comment.