-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.29 KB
/
.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
41
42
43
44
45
46
47
48
49
50
# Allow Ubuntu Trusty (Installs MySQL 5.7)
dist: trusty
sudo: required
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
language: php
services: mysql
php:
- 7.0
- 7.1
- 7.2
matrix:
fast_finish: true
before_script:
- travis_retry composer self-update
# Setup MySQL
- sudo mysql_upgrade
- sudo service mysql restart
- mysql -u root -e 'CREATE DATABASE homestead;'
- mysql -u root -e "CREATE USER 'homestead'@'localhost' IDENTIFIED BY 'secret';"
- mysql -u root -e "GRANT ALL ON homestead.* TO 'homestead'@'localhost';"
## Install Laravel
- composer create-project --prefer-dist laravel/laravel Secondnetwork-laravel "5.5.*"
- cd Secondnetwork-laravel
## Pull in our vendor files (latest)
- composer require tcg/voyager
- composer require Secondnetwork/voyager-frontend
- composer require Secondnetwork/voyager-page-blocks
## Setup Voyager and our modules
- php artisan voyager:install --with-dummy
- php artisan voyager-frontend:install
- php artisan voyager-page-blocks:install
## cd into our vendor folder and execute PHPUnit from here
- cd $TRAVIS_BUILD_DIR/Secondnetwork-laravel/vendor/Secondnetwork/voyager-page-blocks
- $TRAVIS_BUILD_DIR/Secondnetwork-laravel/vendor/bin/phpunit
script:
- phpunit