blessing-skin-server/.travis.yml

46 lines
762 B
YAML
Raw Normal View History

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
2017-11-16 10:09:58 +08:00
- plugins
2017-11-09 16:22:23 +08:00
- 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:
2017-11-18 23:41:37 +08:00
- php: 5.5
2017-11-09 16:22:23 +08:00
- php: 5.6
- php: 7.0
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash) -cF php
- php: 7.1
- node_js: 8
language: node_js
install: yarn
before_script:
- echo "Testing JavaScript Code" > /dev/null
script:
- yarn run lint
- yarn test:coverage
after_success:
- yarn run codecov