-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (43 loc) · 761 Bytes
/
.travis.yml
File metadata and controls
53 lines (43 loc) · 761 Bytes
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
language: php
# PHP version to test against
php:
# 5.2.17
- 5.2
# 5.3.29
- 5.3
# 5.4.x version
- 5.4
# 5.5.x version
- 5.5
# 5.6.x version
- 5.6
# recent 7.x version
- 7.0
php:
- hhvm-3.3
- hhvm-3.6
- hhvm-3.9
- hhvm-3.12
- hhvm-3.15
- hhvm-3.18
- hhvm-nightly
dist: trusty
sudo: required
addons:
firefox: "50.0"
matrix:
include:
- php: 5.2
dist: precise
- php: 5.3
dist: precise
#test environment of database
env:
- DB=mysql
# before script run a test
before script:
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS registered_users_test;" -uroot; fi
script:
sudo -E su $USER -c 'COMMAND1; COMMAND2; COMMAND3'
notifications:
slack: ${SLACK_API_KEY}