Skip to content
Snippets Groups Projects
Commit 3ad57d52 authored by Richard Henck's avatar Richard Henck
Browse files

Rework travis config to use docker containers

This just starts the containers and then runs the unit tests in the main 
phase.
parent a60e10ad
No related branches found
No related tags found
No related merge requests found
language: node_js
node_js:
- "10.16.3"
sudo: true
dist: bionic
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
services:
- docker
install:
- npm install
- npm i --prefix=./node_modules/protractor --save webdriver-manager@latest
- npx webdriver-manager update
# cp src/environments/environment.prod.ts src/environments/environment.ts
# cp e2e/travis.protractor.conf.js e2e/protractor.conf.js
- docker-compose -f docker/docker-compose.yml pull
- travis_wait docker-compose -f docker/docker-compose.yml up -d
script:
- google-chrome --version
- ng build
# ng e2e
- ng test --watch=false --browsers=ChromeHeadless
- docker-compose -f docker/docker-compose.yml exec testcenter-frontend ng test --watch=false
after-script:
- docker-compose -f docker/docker-compose.yml down
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment