Skip to content

Commit

Permalink
Misc explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhkhuc committed Oct 7, 2018
1 parent 298c884 commit 7e67c29
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ python:
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 --preserve-status 5m python 0_multiply.py
# - timeout --preserve-status 10 python 1_linear_regression.py
# - timeout --preserve-status 10 python 1_linear_regression.py; if [ $? -eq 0 ] || [ $? -eq 143 ] ; then exit 0 fi
- timeout --preserve-status 10 python 2_logistic_regression.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
# - timeout --preserve-status 5m python 2_logistic_regression.py
# - timeout --preserve-status 5m python 3_neural_net.py
# - timeout --preserve-status 5m python 4_modern_neural_net.py
# - timeout --preserve-status 10m python 5_convolutional_net.py
# - timeout --preserve-status 10m python 6_lstm.py
- timeout --preserve-status 2m python 0_multiply.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout --preserve-status 2m python 1_linear_regression.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout --preserve-status 5m python 2_logistic_regression.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout --preserve-status 5m python 3_neural_net.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout --preserve-status 5m python 4_modern_neural_net.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout --preserve-status 10m python 5_convolutional_net.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi
- timeout --preserve-status 10m python 6_lstm.py || if [ $? -eq 0 ] || [ $? -eq 143 ]; then exit 0; fi

0 comments on commit 7e67c29

Please sign in to comment.