phpvms/.travis.yml

32 lines
546 B
YAML
Raw Normal View History

2017-06-09 12:08:31 +08:00
#dist: trusty
2017-06-09 11:27:50 +08:00
language: php
php:
- '7.0'
- '7.1'
2017-06-09 12:01:02 +08:00
# - hhvm
2017-06-09 11:27:50 +08:00
2017-07-14 02:45:59 +08:00
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;'
2017-06-09 11:50:22 +08:00
before_script:
2017-06-21 04:20:40 +08:00
- cp .env.travis .env
2017-06-09 11:50:22 +08:00
- composer self-update
2017-12-03 00:26:25 +08:00
- composer install --no-interaction
2017-06-09 11:50:22 +08:00
script:
2017-07-14 03:29:46 +08:00
- php artisan database:create --reset
2017-12-02 12:26:29 +08:00
- php artisan migrate:refresh --seed
2017-07-14 04:23:55 +08:00
- vendor/bin/phpunit --debug --verbose
2017-07-25 23:55:17 +08:00
after_success:
- | # Add binary to GitHub release.
if test "$TRAVIS_TAG"
then
echo "Branch name is $TRAVIS_TAG"
else
echo "no branch name"
fi