tests.sh 317 字节
Newer Older
S
update  
superjom 已提交
1 2 3
#!/bin/bash
set -ex

S
up  
superjom 已提交
4
sudo pip install numpy -y
S
up  
superjom 已提交
5
#sudo apt-get install --only-upgrade cmake -y
S
update  
superjom 已提交
6 7 8 9 10 11 12 13
mkdir -p build
cd build
cmake ..
make
make test

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./travis/run_on_pull_requests; fi
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./travis/run_on_non_pull_requests; fi