-
Notifications
You must be signed in to change notification settings - Fork 170
/
Copy path.travis.yml
64 lines (53 loc) · 1.23 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
60
61
62
63
64
language: php
os: linux
dist: bionic
addons:
apt:
packages:
- mysql-server-5.7
- mysql-client-core-5.7
- mysql-client-5.7
git:
depth: 5
php:
- 7.2
- 7.3
- 7.4
cache:
- directories:
# Cache vendor folder will speed up environment setup
- vendor
- tests/mysql_profile
services:
- mysql
env:
# Here we list the profiles that we want to test, each one will be tested, per version of PHP, in parallel
#- PROFILE=default
before_install:
# execute all of the commands which need to be executed
# before installing dependencies
# Remove xdebug to increase speed
- phpenv config-rm xdebug.ini
# Set up database
- tests/database_setup.sh
install:
# Create setup.php
- export PROFILE=${PROFILE:-testing}
- ln -s .travis.setup.php setup.php
- tests/update_dependencies.sh
# Install the testing profile
- tests/profile_setup.sh "$PROFILE"
before_script:
# execute all of the commands which need to be executed
# before running actual tests
script:
# execute all of the commands which
# should make the build pass or fail
# Go into the tests directory to run the tests
- cd tests/
- ../vendor/phpunit/phpunit/phpunit
branches:
only:
- develop
- master
- master-fix