diff --git a/.travis.yml b/.travis.yml index 6b1f174..9d19db3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,22 @@ +sudo: required + language: node_js node_js: - "6" + services: - mongodb + - docker + +env: + DOCKER_COMPOSE_VERSION: 1.6.0 + +before_install: + - sudo rm /usr/local/bin/docker-compose + - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose + - chmod +x docker-compose + - sudo mv docker-compose /usr/local/bin + after_success: - if [ "$TRAVIS_BRANCH" == "master" ]; then docker build -t nikriek/projectsecure-client:latest --build-arg API_URL=$API_URL . ;