-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 933 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
language: php
php:
- 7.1
- 7.2
- 7.3
- master
matrix:
allow_failures:
- php: master
env:
- BLUZ_MODULE=auth-google
before_install:
- phpenv config-rm xdebug.ini
install:
# Composer
- composer self-update
- composer create-project bluzphp/skeleton --stability=dev
# Require current module
- cd skeleton
- composer require bluzphp/module-$BLUZ_MODULE:dev-$TRAVIS_BRANCH
before_script:
# Database
- mysql -e 'CREATE DATABASE bluz;'
# Migrations
- php vendor/bin/bluzman db:migrate
- php vendor/bin/bluzman db:seed:run
script:
# Check code style
- php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
# Run built-in web-server
- php vendor/bin/bluzman server:start --host 127.0.0.1 -b
# Run CodeCeption tests
- php vendor/bin/bluzman test module-$BLUZ_MODULE
notifications:
email: false
branches:
only:
- master
- develop