diff --git a/.travis.yml b/.travis.yml index 5ba80f3..cbdd3c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/ci/ci.sh b/ci/ci.sh new file mode 100755 index 0000000..e3ffbf5 --- /dev/null +++ b/ci/ci.sh @@ -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"