From 7e67c297374e784d75ede4a6e5ae81c6950eae2a Mon Sep 17 00:00:00 2001 From: vinhkhuc Date: Sat, 6 Oct 2018 23:58:13 -0700 Subject: [PATCH] Misc explanation --- .travis.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0ff10cb..a477148 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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