mirror of
https://github.com/devfake/flox.git
synced 2024-11-14 22:22:39 +01:00
602d4ff189
* define env in .env.examples * Update npm scripts * clean up dependencies
40 lines
887 B
YAML
40 lines
887 B
YAML
language: php
|
|
|
|
php:
|
|
- 5.6
|
|
- 7.0
|
|
- 7.1
|
|
|
|
env:
|
|
APP_ENV: testing
|
|
CACHE_DRIVER: array
|
|
SESSION_DRIVER: array
|
|
QUEUE_DRIVER: sync
|
|
APP_KEY: 16efa6c23c2e8c705826b0e66778fbe7
|
|
DB_CONNECTION: sqlite
|
|
FLOX_FILE_PARSER: flox-file-parser
|
|
|
|
cache:
|
|
directories:
|
|
- $FLOX_FILE_PARSER/node_modules
|
|
- backend/vendor
|
|
|
|
services:
|
|
- mysql
|
|
|
|
script:
|
|
- (cd backend && phpunit)
|
|
- (cd $FLOX_FILE_PARSER && npm test)
|
|
- (cd $FLOX_FILE_PARSER && npm run eslint)
|
|
|
|
before_install:
|
|
- mysql -e 'create database flox_file_parser_test;'
|
|
|
|
install:
|
|
- (cd backend && composer install --prefer-source --no-interaction)
|
|
- nvm install 7.1
|
|
- (cd $FLOX_FILE_PARSER && ./generate_fixtures.sh)
|
|
- (cd $FLOX_FILE_PARSER && npm install)
|
|
- (cd $FLOX_FILE_PARSER/database && cp config/config.js.example config/config.js)
|
|
- (cd $FLOX_FILE_PARSER && NODE_ENV=test npm run sequelize db:migrate)
|