2017-10-26 23:24:33 +08:00
|
|
|
language: php
|
2017-07-20 15:56:42 +08:00
|
|
|
|
|
|
|
git:
|
|
|
|
submodules: false
|
2017-07-31 13:48:01 +08:00
|
|
|
|
2017-10-26 23:24:33 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-11-09 16:22:23 +08:00
|
|
|
- vendor
|
|
|
|
- node_modules
|
2017-10-26 23:24:33 +08:00
|
|
|
|
|
|
|
env:
|
2017-11-09 16:22:23 +08:00
|
|
|
global: APP_ENV=testing
|
2017-10-26 23:24:33 +08:00
|
|
|
|
2017-11-09 16:22:23 +08:00
|
|
|
services: mysql
|
2017-10-26 23:24:33 +08:00
|
|
|
|
2017-11-09 16:22:23 +08:00
|
|
|
install: composer install
|
2017-10-26 23:24:33 +08:00
|
|
|
|
|
|
|
before_script:
|
2017-11-09 16:22:23 +08:00
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
|
|
|
- php artisan key:random
|
|
|
|
- php artisan salt:random
|
2017-10-26 23:24:33 +08:00
|
|
|
|
2017-11-09 16:22:23 +08:00
|
|
|
script: ./vendor/bin/phpunit
|
2017-10-26 23:24:33 +08:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-07-14 15:14:29 +08:00
|
|
|
- php: 7.1
|
2017-11-09 16:22:23 +08:00
|
|
|
script:
|
|
|
|
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash) -cF php
|
2018-02-24 21:23:56 +08:00
|
|
|
- php: 7.2
|
2017-11-09 16:22:23 +08:00
|
|
|
- node_js: 8
|
|
|
|
language: node_js
|
|
|
|
install: yarn
|
|
|
|
before_script:
|
|
|
|
- echo "Testing JavaScript Code" > /dev/null
|
|
|
|
script:
|
|
|
|
- yarn run lint
|
2018-07-27 16:50:19 +08:00
|
|
|
- yarn test --verbose --coverage
|
2017-11-09 16:22:23 +08:00
|
|
|
after_success:
|
|
|
|
- yarn run codecov
|