forked from AlexStack/Laravel-CMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.39 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
51
52
53
54
55
56
57
58
59
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
sudo: false
env:
matrix:
- LARAVEL_VERSION=5.*
- LARAVEL_VERSION=6.*
- LARAVEL_VERSION=5.5.*
matrix:
fast_finish: true
allow_failures:
- php: 7.4snapshot
before_install:
- mysql -e 'CREATE DATABASE laravelcms_test;'
before_script:
- composer self-update
- |-
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "6.*" ]]; then
composer create-project --prefer-dist laravel/laravel cms "5.7.*"
else
composer create-project --prefer-dist laravel/laravel cms "${LARAVEL_VERSION}"
fi
- cd cms
- composer show laravel/framework
- cp -f ../.travis.env .env
- composer clear
- php artisan serve &
- composer require alexstack/laravel-cms "dev-$TRAVIS_BRANCH|$TRAVIS_BRANCH"
- php artisan laravelcms --help
- php artisan laravelcms --action=initialize --locale=zh --table_prefix=travis_cms_ --silent=yes
- |-
if [[ "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]]; then
composer require fzaninotto/faker dev-master
fi
install:
- composer install --prefer-dist --quiet
script:
- php artisan laravelcms
- php artisan laravelcms --action=upgrade --silent=yes
- vendor/bin/phpunit vendor/alexstack/laravel-cms/src/tests/
- php artisan laravelcms --action=uninstall --silent=yes
services:
- mysql
notifications:
email:
on_success: never
on_failure: always