提交 8dba75d9 编写于 作者: S superjom

init

上级 c22211e7
......@@ -5,22 +5,42 @@ cache:
- $HOME/.cache/pip
sudo: required
dist: trusty
os:
- linux
addons:
apt:
packages:
- gcc-4.8
- g++-4.8
- git
- python
- python-pip
- python2.7-dev
- python-wheel
- clang-format-3.8
- ccache
script:
/bin/bash ./tests.sh
matrix:
include:
os: linux
addons:
apt:
packages:
- gcc-4.8
- g++-4.8
- git
- python
- python-pip
- python2.7-dev
- python-wheel
- clang-format-3.8
- ccache
- npm
- nodejs
script:
/bin/bash ./tests.sh backend
include:
os: linux
addons:
apt:
packages:
- gcc-4.8
- g++-4.8
- git
- python
- python-pip
- python2.7-dev
- python-wheel
- npm
- nodejs
script:
/bin/bash ./tests.sh frontend
notifications:
email:
......
#!/bin/bash
set -ex
sudo pip install numpy
#sudo apt-get install --only-upgrade cmake -y
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
mode=$1
backend_test() {
sudo pip install numpy
mkdir -p build
cd build
cmake ..
make
make test
}
frontend_test() {
cd frontend
npm install
npm run build
}
echo "mode" $mode
if [ $mode = "backend" ]; then
backend_test
else
frontend_test
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册