-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (33 loc) · 1.03 KB
/
.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
dist: trusty
language: node_js
node_js:
- "10"
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=v1.25.2
addons:
chrome: stable
sonarcloud:
organization: javiersvg-github
token: ${SONAR_TOKEN}
apt:
packages:
- docker-ce
cache:
directories:
- ./node_modules
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
install:
- npm install
script:
- npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI --code-coverage
- npm run e2e -- --protractor-config=e2e/protractor-ci.conf.js
- sonar-scanner
- docker-compose up -d
- git clone https://github.com/javiersvg/tour-of-heroes-integration-tests.git
- sudo docker run --network=tour-of-heroes-net --volume "${PWD}:/mnt/tests" --workdir /mnt/tests/tour-of-heroes-integration-tests --name tests openjdk:11 ./gradlew clean test