2016-12-15 19:17:25 +01:00
|
|
|
language: php
|
|
|
|
|
|
|
|
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
|
2016-12-14 18:51:23 +01:00
|
|
|
FLOX_FILE_PARSER: flox-file-parser
|
2016-12-15 19:17:25 +01:00
|
|
|
|
2016-12-28 10:34:39 +01:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
2016-12-14 18:51:23 +01:00
|
|
|
script:
|
|
|
|
- (cd backend && phpunit)
|
|
|
|
- (cd $FLOX_FILE_PARSER && npm test)
|
2017-01-04 10:34:12 +01:00
|
|
|
- (cd $FLOX_FILE_PARSER && npm run eslint)
|
2016-12-15 19:17:25 +01:00
|
|
|
|
2016-12-28 10:34:39 +01:00
|
|
|
before_install:
|
|
|
|
- mysql -e 'create database flox_file_parser_test;'
|
|
|
|
|
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)
|
|
|
|
- nvm install 7.1
|
|
|
|
- (cd $FLOX_FILE_PARSER && ./generate_fixtures.sh)
|
2016-12-28 10:34:39 +01:00
|
|
|
- (cd $FLOX_FILE_PARSER && npm install && npm install -g sequelize-cli)
|
|
|
|
- (cd $FLOX_FILE_PARSER/database && cp config/config.json.example config/config.json)
|
|
|
|
- (cd $FLOX_FILE_PARSER/database && sequelize db:migrate --env test)
|