Created
October 17, 2017 19:12
-
-
Save hakant/35b9259651d2b03b3d73cb92be0aaadb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo: required | |
dist: trusty | |
language: node_js | |
node_js: | |
- '7.7.4' | |
services: | |
- docker | |
addons: | |
apt: | |
sources: | |
- google-chrome | |
packages: | |
- google-chrome-stable | |
before_install: | |
- export CHROME_BIN=chromium-browser | |
- export DISPLAY=:99.0 | |
- sh -e /etc/init.d/xvfb start | |
before_script: | |
- npm install | |
script: | |
- npm run test -- --watch=false | |
- npm run e2e | |
after_success: | |
- if [ "$TRAVIS_BRANCH" == "master" ]; then | |
npm run build; | |
docker build -t hakant/roost-angular -f ./.docker/nginx.dockerfile .; | |
docker tag hakant/roost-angular hakant/roost-angular:$(git rev-parse --short HEAD); | |
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; | |
docker push hakant/roost-angular; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment