phpvms/.travis.yml
2017-12-02 10:26:25 -06:00

32 lines
546 B
YAML

#dist: trusty
language: php
php:
- '7.0'
- '7.1'
# - hhvm
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;'
before_script:
- cp .env.travis .env
- composer self-update
- composer install --no-interaction
script:
- php artisan database:create --reset
- php artisan migrate:refresh --seed
- vendor/bin/phpunit --debug --verbose
after_success:
- | # Add binary to GitHub release.
if test "$TRAVIS_TAG"
then
echo "Branch name is $TRAVIS_TAG"
else
echo "no branch name"
fi