-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
47 lines (38 loc) · 908 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: required
dist: trusty
language: node_js
node_js:
- '6.10.3'
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.6.0
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- sudo apt-get update
- 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
install:
- sudo apt-get update
before_script:
- docker-compose up --build -d
- cd angular-cli-project
- npm install -g @angular/cli
- npm install
- ng build
- sleep 5
script: ng test --watch=false && ng e2e
after_script:
- docker-compose down