forked from skim-rs/skim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sh
30 lines (26 loc) · 796 Bytes
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This script takes care of testing
set -ex
main() {
if [ ! -z $DISABLE_TESTS ]; then
return
fi
cross test --release --target $TARGET
cross build --release --target $TARGET
mkdir -p target/release
cp target/$TARGET/release/sk target/release
case $TARGET in
x86_64-unknown-linux-gnu|i686-unknown-linux-gnu|x86_64-unknown-linux-musl)
# run the integration test
tmux new "python3 test/test_skim.py &> out && touch ok" && cat out && [ -e ok ]
;;
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 ]
;;
*)
;;
esac
}
if [ -z $TRAVIS_TAG ]; then
main
fi