travis config update

This commit is contained in:
SamR1 2018-01-14 13:07:07 +01:00
parent c07e5c9608
commit 83daad9523

View File

@ -1,6 +1,10 @@
language: node_js language: node_js
node_js: '9' node_js: '9'
before_install:
- stty cols 80
dist: trusty
sudo: required sudo: required
addons: addons:
@ -8,7 +12,7 @@ addons:
sources: sources:
- google-chrome - google-chrome
packages: packages:
- google-chrome-stable - google-chrome-stable fluxbox
services: services:
- docker - docker
@ -26,12 +30,13 @@ before_install:
before_script: before_script:
- export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test - export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test
- export APP_SETTINGS=mpwo_api.config.TestingConfig - export APP_SETTINGS=mpwo_api.config.TestingConfig
- export REACT_APP_API_URL=http://localhost:5000/api/ - export REACT_APP_API_URL=http://127.0.0.1:5000/api/
- export NODE_ENV=development - export NODE_ENV=development
- export TEST_URL=http://localhost:3000 - export TEST_URL=http://127.0.0.1:3000
- export DISPLAY=:99.0 - export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start - sh -e /etc/init.d/xvfb start
- sleep 3 - sleep 3
- fluxbox >/dev/null 2>&1 &
- docker-compose -f docker-compose-ci.yml up --build -d - docker-compose -f docker-compose-ci.yml up --build -d
script: script: