forked from govCMS/GovCMS8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (47 loc) · 1.36 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
dist: trusty
sudo: required
language: php
addons:
apt:
packages:
- parallel
hosts:
- govcms8.local
branches:
only:
# Only run Travis on major branches (1.x, 8.x-5.x etc) to avoid double builds
- /^\d\.x(-\d\.x)?(-\S*)?$/
cache:
bundler: true
apt: true
directories:
- "$HOME/.composer/cache"
php:
- 7.3
- 7.4
matrix:
allow_failures:
- php: 7.4
fast_finish: true
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 || echo "xdebug not available"
- phpenv rehash
# Composer
- composer self-update
- composer --version
# Validate composer.json file.
- composer validate composer.json --no-check-all --ansi --no-interaction
install:
# Add Composer's local bin directory to the PATH.
- export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/bin:$PATH"
# composer install should fail on bad patches.
- export COMPOSER_EXIT_ON_PATCH_FAILURE=1
# Install GovCMS codes.
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer --verbose install
script:
- ls -D $TRAVIS_BUILD_DIR