-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
40 lines (30 loc) · 813 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: php
sudo: true
php:
- 5.5
- 5.6
- 7.0
- hhvm
sudo: false
matrix:
fast_finish: true
allow_failures:
- php: hhvm
cache:
directories:
- laravel
services: mysql
install:
# create a new database for the hyn connection
- export DB_USERNAME=travis DB_DATABASE=hyn DB_PASSWORD= QUEUE_DRIVER=sync
- export PACKAGE_PROVIDER=Kevupton\\\\AutoSwaggerUI\\\\Providers\\\\ReferralsServiceProvider::class
# - export SEED_CLASS=TestSeeds::class
- export PACKAGE_NAME=kevupton/referrals
- curl -s https://raw.githubusercontent.com/kevupton/docker-laravel-tests/master/setup.sh | bash
script:
- cd laravel
- composer update
- php artisan vendor:publish --force
- php artisan migrate --seed
- phpunit "vendor/$PACKAGE_NAME"
# run the script calling unit tests and so on