forked from vinhkhuc/PyTorch-Mini-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
20 lines (19 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
os:
- linux
language: python
python:
- 2.7
- 3.6
cache: bundler
install:
- pip install --no-cache-dir -q torch
# We use timeout to prevent the Python process from running too long since the long running process will be
# auto-killed by Travis. When the timeout happens, we override its exit code 143 by the success exit code 0.
script:
- timeout 2m python 0_multiply.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout 2m python 1_linear_regression.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout 5m python 2_logistic_regression.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout 5m python 3_neural_net.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout 5m python 4_modern_neural_net.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout 10m python 5_convolutional_net.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout 10m python 6_lstm.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi