2018-01-13 14:36:07 +01:00
|
|
|
language: node_js
|
|
|
|
node_js: '9'
|
|
|
|
|
2018-01-14 13:07:07 +01:00
|
|
|
before_install:
|
|
|
|
- stty cols 80
|
|
|
|
|
|
|
|
dist: trusty
|
2018-01-10 22:36:31 +01:00
|
|
|
sudo: required
|
|
|
|
|
2018-01-13 14:36:07 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- google-chrome
|
|
|
|
packages:
|
2018-01-14 13:07:07 +01:00
|
|
|
- google-chrome-stable fluxbox
|
2018-01-13 14:36:07 +01:00
|
|
|
|
2018-01-10 22:36:31 +01:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DOCKER_COMPOSE_VERSION=1.14.0
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
before_script:
|
2018-01-13 11:05:23 +01:00
|
|
|
- export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test
|
|
|
|
- export APP_SETTINGS=mpwo_api.config.TestingConfig
|
2018-01-14 14:41:03 +01:00
|
|
|
- export REACT_APP_API_URL=http://127.0.0.1
|
2018-01-13 14:36:07 +01:00
|
|
|
- export NODE_ENV=development
|
2018-01-14 14:41:03 +01:00
|
|
|
- export TEST_URL=http://127.0.0.1
|
2018-01-13 15:06:39 +01:00
|
|
|
- export DISPLAY=:99.0
|
2018-01-13 14:36:07 +01:00
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
- sleep 3
|
2018-01-14 13:07:07 +01:00
|
|
|
- fluxbox >/dev/null 2>&1 &
|
2018-01-10 22:36:31 +01:00
|
|
|
- docker-compose -f docker-compose-ci.yml up --build -d
|
|
|
|
|
|
|
|
script:
|
2018-01-13 13:00:05 +01:00
|
|
|
- sh test.sh
|
2018-01-10 22:36:31 +01:00
|
|
|
|
|
|
|
after_script:
|
2018-01-13 21:06:08 +01:00
|
|
|
- docker-compose down
|