FitTrackee/.travis.yml
2018-04-10 22:11:33 +02:00

47 lines
1022 B
YAML

language: node_js
node_js: '9'
before_install:
- stty cols 80
dist: trusty
sudo: required
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable fluxbox
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:
- export DATABASE_TEST_URL=postgres://postgres:@localhost:5432/mpwo_test
- export APP_SETTINGS=mpwo_api.config.TestingConfig
- export REACT_APP_API_URL=http://127.0.0.1
- export NODE_ENV=development
- export TEST_URL=http://127.0.0.1
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- fluxbox >/dev/null 2>&1 &
- docker-compose -f docker-compose-ci.yml up --build -d
script:
- sh test.sh
after_script:
- docker-compose down