Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
update CI (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
szha authored and eric-haibin-lin committed Oct 24, 2018
1 parent e1a61f5 commit 06ee6cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ci/step_documentation.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/bash
gpu=$(($EXECUTOR_NUMBER % 4))
set -ex
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
source ci/prepare_clean_env.sh doc
ci/install_dep.sh
export CUDA_VISIBLE_DEVICES=${gpu}
export CUDA_VISIBLE_DEVICES=$EXECUTOR_NUMBER
make clean_doc
make docs
set +ex
3 changes: 1 addition & 2 deletions ci/step_unit_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
lang=$1
branch=$2
capture_flag=$3
gpu=$(($EXECUTOR_NUMBER % 4))
set -ex
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
source ci/prepare_clean_env.sh ${lang}
ci/install_dep.sh
export CUDA_VISIBLE_DEVICES=${gpu}
export CUDA_VISIBLE_DEVICES=$EXECUTOR_NUMBER
py.test -v ${capture_flag} -n 4 -m "not serial" --durations=50 --cov=gluonnlp tests/unittest
py.test -v ${capture_flag} -n 0 -m "serial" --durations=50 --cov=gluonnlp tests/unittest
ci/codecov.sh -c -F ${branch},${lang} -n unittests
Expand Down

0 comments on commit 06ee6cf

Please sign in to comment.