Skip to content

Commit 2deacbc

Browse files
committed
Update error propagation in travis script
1 parent 202df1a commit 2deacbc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/travis/travis_script.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# main script of travis
33

44
if [ ${TASK} == "lint" ]; then
5-
make lint || travis_terminate 1
5+
make lint || exit 1
66
fi
77

88
if [ ${TASK} == "build" ]; then
9-
make DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || travis_terminate 1
9+
make DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || exit 1
1010
fi
1111

1212
if [ ${TASK} == "test" ]; then
13-
make tests DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || travis_terminate 1
13+
make tests DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || exit 1
1414
cd tests
1515
# single-worker tests
1616
tests=( test_connection test_dynamic_allocation test_locality_api )
@@ -32,11 +32,11 @@ if [ ${TASK} == "test" ]; then
3232

3333
cd ..
3434

35-
make apps DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || travis_terminate 1
35+
make apps DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || exit 1
3636

37-
python tracker/dmlc_local.py -n 0 -s 2 build/apps/matrix_factorization --dataset apps/data/mf/ -r 2 --num_keys 12 --epochs 10 || travis_terminate 1
37+
python tracker/dmlc_local.py -n 0 -s 2 build/apps/matrix_factorization --dataset apps/data/mf/ -r 2 --num_keys 12 --epochs 10 || exit 1
3838

39-
python tracker/dmlc_local.py -n 0 -s 2 build/apps/knowledge_graph_embeddings --dataset apps/data/kge/ --num_entities 280 --num_relations 112 --num_epochs 4 --embed_dim 100 --eval_freq 2 || travis_terminate 1
39+
python tracker/dmlc_local.py -n 0 -s 2 build/apps/knowledge_graph_embeddings --dataset apps/data/kge/ --num_entities 280 --num_relations 112 --num_epochs 4 --embed_dim 100 --eval_freq 2 || exit 1
4040

41-
python tracker/dmlc_local.py -n 0 -s 2 build/apps/word2vec --num_threads 2 --negative 2 --binary 1 --num_keys 4970 --embed_dim 10 --input_file apps/data/lm/small.txt --num_iterations 4 --window 2 --localize_pos 1 --localize_neg 1 --data_words 10000 || travis_terminate 1
41+
python tracker/dmlc_local.py -n 0 -s 2 build/apps/word2vec --num_threads 2 --negative 2 --binary 1 --num_keys 4970 --embed_dim 10 --input_file apps/data/lm/small.txt --num_iterations 4 --window 2 --localize_pos 1 --localize_neg 1 --data_words 10000 || exit 1
4242
fi

0 commit comments

Comments
 (0)