language: node_js
sudo: required

services:
  - docker

before_script:
  - docker-compose build
  - docker-compose up
  - sleep 10

script:
  - docker exec web /bin/sh -c "cd /usr/src/app && npm run test"
  - docker-compose run sut test

branches:
  only:
    - master

language: node_js
sudo: required

services:
  - docker

before_script:
  - docker-compose build
  - docker-compose up -d
  - sleep 5

script:
  - docker exec web /bin/sh -c "cd /usr/src/app && npm run test"
  - docker-compose run sut test

branches:
  only:
    - master

Bring up containers in background
Bring up containers in background
