sudo: required

language: node

services:
  - docker

before_install:
  - docker build -t vartan/anvil-connect-test -f Dockerfile .
  - docker run -d --name connect-redis vartan/alpine-redis:3.0.5
  - docker run -d --name connect --link connect-redis -p 3000:3000/tcp vartan/anvil-connect-test --redis-host connect-redis
  - sleep 10

script:
  - ./test.sh

after_script:
  - docker stop connect connect-redis
  - docker rm connect connect-redis

deploy:
  provider: script
  script: deploy.sh
  on:
    tags: true
    branch: master

sudo: required

language: node

services:
  - docker

before_install:
  - docker build -t vartan/anvil-connect-test -f Dockerfile .
  - docker run -d --name connect-redis vartan/alpine-redis:3.0.5
  - docker run -d --name connect --link connect-redis -p 3000:3000/tcp vartan/anvil-connect-test --redis-host connect-redis
  - sleep 10

script:
  - ./test.sh

after_script:
  - docker stop connect connect-redis
  - docker rm connect connect-redis

deploy:
  provider: script
  script: ./deploy.sh
  on:
    tags: true
    branch: master

Fix path to deploy script
Fix path to deploy script