提交 9734ffae 编写于 作者: S superjom

Merge branch 'develop' of github.com:PaddlePaddle/VisualDL into...

Merge branch 'develop' of github.com:PaddlePaddle/VisualDL into feature/add_image_component-add_server_test
language: cpp
cache:
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- pip
- ccache
- yarn
sudo: required
dist: trusty
os:
......@@ -19,8 +19,11 @@ addons:
- python-wheel
- clang-format-3.8
- ccache
- npm
- nodejs
script:
/bin/bash ./tests.sh
/bin/bash ./tests.sh all
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
cur=$(pwd)
backend_test() {
cd $cur
sudo pip install numpy
mkdir -p build
cd build
cmake ..
make
make test
}
frontend_test() {
cd $cur
cd frontend
npm install
npm run build
}
echo "mode" $mode
if [ $mode = "backend" ]; then
backend_test
elif [ $mode = "all" ]; then
frontend_test
backend_test
else
frontend_test
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册