2017-04-07 02:05:06 +02:00
|
|
|
language: php
|
2017-04-07 01:49:06 +02:00
|
|
|
|
|
|
|
php:
|
|
|
|
- '5.6'
|
|
|
|
- '7.0'
|
2017-11-07 01:39:12 +01:00
|
|
|
- '7.1'
|
2018-11-16 21:44:44 +01:00
|
|
|
- '7.2'
|
2017-04-07 01:49:06 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
2017-11-07 01:39:12 +01:00
|
|
|
|
2017-04-07 01:30:08 +02:00
|
|
|
before_install:
|
2019-08-04 18:07:32 +02:00
|
|
|
- rvm use 2.3 --install --binary --fuzzy
|
2017-04-07 02:05:06 +02:00
|
|
|
- ruby --version
|
2017-04-07 01:49:06 +02:00
|
|
|
- mysql -e 'CREATE DATABASE development;'
|
2018-09-21 00:00:46 +02:00
|
|
|
- nvm install 6.14.4
|
|
|
|
- npm install -g npm@6.1.0
|
2019-08-04 18:07:32 +02:00
|
|
|
- npm install -g mocha@6.2.0
|
2017-04-07 01:30:08 +02:00
|
|
|
- cd client
|
|
|
|
- npm install
|
2017-04-07 01:49:06 +02:00
|
|
|
- cd ../tests
|
2019-08-04 18:07:32 +02:00
|
|
|
- gem install bundler
|
2017-04-07 01:49:06 +02:00
|
|
|
- bundle install
|
|
|
|
- gem install bacon
|
|
|
|
- cd ../server
|
|
|
|
- composer install
|
|
|
|
- nohup bash -c "php -S localhost:8080 2>&1 &" && sleep 1; cat nohup.out
|
2017-04-07 01:30:08 +02:00
|
|
|
- cd ..
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cd client
|
|
|
|
- npm test
|
2017-11-07 01:39:12 +01:00
|
|
|
- cd ../server
|
|
|
|
- ./run-tests.sh
|
2017-04-07 01:49:06 +02:00
|
|
|
- cd ../tests
|
|
|
|
- bacon init.rb
|