-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (23 loc) · 873 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
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
# list any PHP version you want to test against
php:
# using major version aliases
- 7.2
# optionally specify a list of environments, for example to test different RDBMS
env:
- DB=mysql
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS test;" -uroot; fi
# update root password
- if [[ "$DB" == "mysql" ]]; then mysql -e "set password for 'root'@'localhost'=password('123456');" -uroot; fi
- cd ~
# git clone phpunit_demo
- git clone https://github.com/jasydong/phpunit_demo.git
- cd phpunit_demo
# use phpunit to test
script: phpunit
# configure notifications (email, IRC, campfire etc)
notifications:
email: "[email protected]"