forked from jpuigcerver/nnutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (46 loc) · 990 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
dist: bionic
sudo: true
language: python
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
python:
- 3.6
- 3.7
- 3.8
env:
global:
- GTEST_ROOT="$HOME/.local"
matrix:
- CC=gcc-7 CXX=g++-7 TORCH_PIP_PACKAGE="torch==1.6.0"
# Add tests with additional compilers
matrix:
include:
- python: 3.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
env: CC=gcc-6 CXX=g++-6 TORCH_PIP_PACKAGE="torch==1.6.0"
before_install:
# Upgrade PIP to latest version, in order to support --progres-bar
- pip install -U pip
# Install prerequisites.
- pip install --progress-bar off -r <(sed -r 's/^torch.*$//g;/^$/d' requirements.txt)
- pip install $TORCH_PIP_PACKAGE --progress-bar off
script:
- travis/build.sh
- travis/test.sh
notifications:
email:
on_success: change
on_failure: always