forked from tobybellwood/govcms-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (44 loc) · 1.18 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
dist: trusty
sudo: false
language: php
branches:
except:
- master
cache:
bundler: true
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "$HOME/.npm"
php:
- '5.6'
- '7.0'
- '7.1'
mysql:
database: govcms8
username: govcms
encoding: utf8
matrix:
allow_failures:
- php: 5.6
before_install:
# Tweak PHP configuration.
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'max_execution_time = 180' >> govcms.php.ini;
- echo 'sendmail_path = /bin/true' >> govcms.php.ini;
- phpenv config-add govcms.php.ini
- phpenv config-rm xdebug.ini
- phpenv rehash
# MySQL Options
- mysql -e 'SET GLOBAL wait_timeout = 5400;'
- mysql -e "SHOW VARIABLES LIKE 'wait_timeout'"
# Composer
- composer self-update
- composer --version
install:
# Add Composer's local bin directory to the PATH.
- export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/bin:$PATH"
script:
- cd $TRAVIS_BUILD_DIR
- travis_retry composer create-project --stability dev --prefer-dist govcms/govcms8 govCMS8