sudo: required

dist: trusty

language: node_js

services:
  - docker

addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable
      - google-chrome-beta

node_js:
  - "7"

before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - npm install -g @angular/cli
  - npm install

script:
  - ng test --watch=false
  - ng e2e

deploy:
  provider: script
  script: docker/deploy.sh $TRAVIS_TAG
  on:
    tags: true

sudo: required

dist: trusty

language: node_js

services:
  - docker

addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable
      - google-chrome-beta
      - docker-ce

node_js:
  - "7"

before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - npm install -g @angular/cli
  - npm install

script:
  - ng test --watch=false
  - ng e2e

deploy:
  provider: script
  script: docker/deploy.sh $TRAVIS_TAG
  on:
    tags: true

Use recent Docker version in Travis build
Use recent Docker version in Travis build
