47 lines
775 B
YAML
47 lines
775 B
YAML
language: php
|
|
|
|
git:
|
|
submodules: false
|
|
|
|
cache:
|
|
directories:
|
|
- vendor
|
|
- plugins
|
|
- node_modules
|
|
|
|
env:
|
|
global: APP_ENV=testing
|
|
|
|
services: mysql
|
|
|
|
install: composer install
|
|
|
|
before_script:
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
|
- php artisan key:random
|
|
- php artisan salt:random
|
|
|
|
script: ./vendor/bin/phpunit
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.5
|
|
- 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
|
|
- php: 7.2
|
|
- 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
|