提交 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 language: cpp
cache: cache:
directories: - pip
- $HOME/.ccache - ccache
- $HOME/.cache/pip - yarn
sudo: required sudo: required
dist: trusty dist: trusty
os: os:
...@@ -19,8 +19,11 @@ addons: ...@@ -19,8 +19,11 @@ addons:
- python-wheel - python-wheel
- clang-format-3.8 - clang-format-3.8
- ccache - ccache
- npm
- nodejs
script: script:
/bin/bash ./tests.sh /bin/bash ./tests.sh all
notifications: notifications:
email: email:
......
#!/bin/bash #!/bin/bash
set -ex set -ex
sudo pip install numpy mode=$1
#sudo apt-get install --only-upgrade cmake -y cur=$(pwd)
mkdir -p build
cd build backend_test() {
cmake .. cd $cur
make sudo pip install numpy
make test mkdir -p build
cd build
#if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./travis/run_on_pull_requests; fi cmake ..
#if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./travis/run_on_non_pull_requests; fi 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.
先完成此消息的编辑!
想要评论请 注册