2016-12-15 19:17:25 +01:00
|
|
|
language: php
|
|
|
|
|
2017-02-07 16:16:06 +01:00
|
|
|
sudo: false
|
|
|
|
|
2016-12-15 19:17:25 +01:00
|
|
|
php:
|
2016-12-16 12:19:47 +01:00
|
|
|
- 5.6
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
2016-12-15 19:17:25 +01:00
|
|
|
|
|
|
|
env:
|
|
|
|
APP_ENV: testing
|
|
|
|
CACHE_DRIVER: array
|
|
|
|
SESSION_DRIVER: array
|
|
|
|
QUEUE_DRIVER: sync
|
2016-12-15 20:06:12 +01:00
|
|
|
APP_KEY: 16efa6c23c2e8c705826b0e66778fbe7
|
2016-12-15 19:17:25 +01:00
|
|
|
DB_CONNECTION: sqlite
|
2017-02-07 16:16:06 +01:00
|
|
|
NODE_ENV: test
|
|
|
|
TV_ROOT: /home/travis/build/devfake/flox/flox-file-parser/app/fixtures/tv
|
|
|
|
MOVIES_ROOT: /home/travis/build/devfake/flox/flox-file-parser/app/fixtures/movies
|
2017-02-28 19:07:25 +01:00
|
|
|
FLOX_HOST: 127.0.0.1
|
2016-12-15 19:17:25 +01:00
|
|
|
|
2017-01-04 12:40:52 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-02-07 16:16:06 +01:00
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
2017-01-04 12:40:52 +01:00
|
|
|
|
2016-12-14 18:51:23 +01:00
|
|
|
script:
|
2017-02-07 16:16:06 +01:00
|
|
|
- (cd backend && vendor/bin/phpunit --testdox)
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- nvm install 7.0
|
|
|
|
- nvm use 7.0
|
2016-12-28 10:34:39 +01:00
|
|
|
|
2016-12-15 19:17:25 +01:00
|
|
|
install:
|
2016-12-14 18:51:23 +01:00
|
|
|
- (cd backend && composer install --prefer-source --no-interaction)
|
2017-02-07 16:16:06 +01:00
|
|
|
- (cd flox-file-parser && ./generate_fixtures.sh && npm install)
|
|
|
|
- (cd flox-file-parser && cp database/config/config.js.example database/config/config.js)
|
|
|
|
- (cd flox-file-parser && npm run db:setup && (FP_HOST=127.0.0.1 FP_PORT=3001 npm start&) && sleep 1)
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|