Fixed travis ci.

This commit is contained in:
Shuai Lin 2016-11-25 15:48:46 +08:00
parent 0d2ed6aa87
commit 0cc4c8d2fa
2 changed files with 20 additions and 8 deletions

View file

@ -9,11 +9,4 @@ install:
- echo "Nothing to install"
script:
- cd image && make base squash-base server && cd ..
- cp samples/server.conf bootstrap/bootstrap.conf
- sudo ./launcher bootstrap
- sudo ./launcher start && sleep 10
- sudo ./launcher stop --skip-prereqs
- sudo ./launcher start --docker-args "--memory 1g" && sleep 10
- sudo ./launcher restart
- sudo ./launcher rebuild --docker-args "--memory 1g"
- ci/ci.sh

19
ci/ci.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
set -e -x
pip install docker-squash
(
cd image
make base squash-base server
)
cp samples/server.conf bootstrap/bootstrap.conf
./launcher bootstrap
./launcher start && sleep 10
./launcher stop --skip-prereqs
./launcher start --docker-args "--memory 1g" && sleep 10
./launcher restart
./launcher rebuild --docker-args "--memory 1g"