seafile-containerized/ci/ci.sh

28 lines
612 B
Bash
Raw Normal View History

2016-11-25 07:48:46 +00:00
#!/bin/bash
set -e -x
(
cd image
# pip install docker-squash
# make base squash-base server
make server
2016-11-25 07:48:46 +00:00
)
2016-11-25 08:13:06 +00:00
sudo cp samples/server.conf bootstrap/bootstrap.conf
2016-11-25 07:48:46 +00:00
2016-11-29 07:32:21 +00:00
sudo ./launcher -v bootstrap
sudo ./launcher -v start && sleep 10
2016-11-25 08:13:06 +00:00
sudo ./launcher stop --skip-prereqs
sudo ./launcher start --docker-args "--memory 1g" && sleep 10
sudo ./launcher restart
2016-11-29 07:32:21 +00:00
sudo ./launcher -v rebuild
sudo ./launcher -v rebuild --docker-args "--memory 1g"
2016-12-21 08:02:49 +00:00
if [[ $TRAVIS_TAG != "" ]]; then
ci/publish-image.sh
2016-12-21 08:14:37 +00:00
else
echo "Not going to push the image to docker hub, since it's not a build triggered by a tag"
2016-12-21 08:02:49 +00:00
fi