-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
96 lines (84 loc) · 1.96 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
sudo: false
language: php
branches:
except:
- /^release-\d+\.\d+\.\d+.*$/
- /^ghgfk-.*$/
cache:
directories:
- $HOME/.composer/cache
- $HOME/.local
env:
global:
- COMPOSER_ARGS: "--no-interaction --ignore-platform-reqs"
- SITE_URL: https://heiglandreas.github.io/Org_Heigl_Ghostscript
- GH_USER_NAME: "Andreas Heigl"
- GH_USER_EMAIL: [email protected]
- GH_REF: github.com:heiglandreas/Org_Heigl_Ghostscript.git
- ENCRYPTION_LABEL: "f38516f65eab"
matrix:
- DEPS=latest
- DEPS=lowest
addons:
apt:
packages:
- ghostscript
php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
matrix:
fast_finish : true
exclude:
- php: 7.2
env: DEPS=lowest
allow_failures:
- php: nightly
- php: 5.6
stages:
- checkcode
- checkxml
- test
- coverage
- deploy_docs
jobs:
include:
- stage: checkcode
php: 7.2
script:
- composer cs-check
- stage: test
before_install:
- phpenv config-rm xdebug.ini || return 0
script:
- composer test
- stage: coverage
if: branch = master AND type = push
php: 7.2
env: TEST_COVERAGE=true
script:
- ls
after_script:
- travis_retry composer require $COMPOSER_ARGS --dev satooshi/php-coveralls ;
- composer test-coverage
- travis_retry composer upload-coverage
- stage: deploy_docs
if: branch = master AND type = push
php: 7.2
script:
- ls
after-script:
- echo "Preparing to build and deploy documentation"
- wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh"
- chmod 755 theme-installer.sh
- ./theme-installer.sh
- ./zf-mkdoc-theme/deploy.sh
- echo "Completed deploying documentation"
before_install:
- travis_retry composer self-update
install:
- if [[ $DEPS == 'lowest' ]]; then COMPOSER_ARGS="--prefer-lowest --prefer-stable $COMPOSER_ARGS"; fi
- travis_retry composer update $COMPOSER_ARGS
- composer show --installed