diff --git a/ci/install.sh b/ci/install.sh index e8eedc7c..11d33ffe 100644 --- a/ci/install.sh +++ b/ci/install.sh @@ -44,8 +44,8 @@ main() { --target $target # For test - case $TRAVIS_OS_NAME in - linux) + case $TARGET in + x86_64-unknown-linux-gnu|i686-unknown-linux-gnu) sudo add-apt-repository -y ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get -y install python3.6 @@ -54,7 +54,7 @@ main() { sudo apt-get install -y zsh stty cols 80 ;; - osx) + x86_64-apple-darwin|i686-apple-darwin) brew upgrade python python -V python3 -V diff --git a/ci/script.sh b/ci/script.sh index 5ae289e8..1a3955d1 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -10,12 +10,12 @@ main() { cargo test --verbose - case $TRAVIS_OS_NAME in - linux) + case $TARGET in + x86_64-unknown-linux-gnu|i686-unknown-linux-gnu) # run the integration test tmux new "python3.6 test/test_skim.py > out && touch ok" && cat out && [ -e ok ] ;; - osx) + x86_64-apple-darwin|i686-apple-darwin) # run the integration test tmux new "python3 test/test_skim.py > out && touch ok" && cat out && [ -e ok ] ;;