Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/41 #42

Merged
merged 3 commits into from
Oct 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ env:
- LANDING_PAGE: "http://localhost:8080/org.geppetto.frontend"
services:
- docker
install:
- npm install -g [email protected] [email protected] [email protected] @babel/[email protected] [email protected] @babel/[email protected]
before_install:
- if [ $TRAVIS_BRANCH != "master" ]; then git clone -b $DEFAULT_BRANCH https://github.com/openworm/geppetto-client.git; fi
script:
- travis_retry docker build -t=$IMAGE_NAME --build-arg targetBranch=$TRAVIS_BRANCH --build-arg originBranch=$TRAVIS_PULL_REQUEST_BRANCH --build-arg defaultBranch=$DEFAULT_BRANCH $DOCKER_FOLDER
- travis_retry docker run -t -dit --name=$CONTAINER_NAME -p 8080:8080 $IMAGE_NAME
Expand All @@ -22,18 +22,18 @@ script:
- http_status=$(curl -s -I $1 $LANDING_PAGE | grep HTTP/1.1 | awk {'print $2'})
- echo "$http_status"
- while [ "$http_status" == "404" ]; do
echo "Restart run. Printing logs for debugging purposes";
sudo docker cp $CONTAINER_NAME:/home/developer/virgo/serviceability/logs/log.log /etc;
tail -n 200 /etc/log.log;
docker stop $(docker ps -a -q);
sleep 10;
docker rm $(docker ps -a -q);
sleep 10;
travis_retry docker run -t -dit --name=$CONTAINER_NAME -p 8080:8080 $IMAGE_NAME;
bash $TRAVIS_BUILD_DIR/tests/casperjs/utilities/test_geppetto_server.sh;
sleep 60;
http_status=$(curl -s -I $1 $LANDING_PAGE | grep HTTP/1.1 | awk {'print $2'});
echo "Done restarting $http_status";
echo "Restart run. Printing logs for debugging purposes";
sudo docker cp $CONTAINER_NAME:/home/developer/virgo/serviceability/logs/log.log /etc;
tail -n 200 /etc/log.log;
docker stop $(docker ps -a -q);
sleep 10;
docker rm $(docker ps -a -q);
sleep 10;
travis_retry docker run -t -dit --name=$CONTAINER_NAME -p 8080:8080 $IMAGE_NAME;
bash $TRAVIS_BUILD_DIR/tests/casperjs/utilities/test_geppetto_server.sh;
sleep 60;
http_status=$(curl -s -I $1 $LANDING_PAGE | grep HTTP/1.1 | awk {'print $2'});
echo "Done restarting $http_status";
done;
- travis_wait 35 travis_retry npm test -- --verbose --colors
- docker ps -a;
Expand Down