-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.travis.yml
171 lines (143 loc) · 7.04 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
language: php
sudo: false
cache:
directories:
- $HOME/.php-cs-fixer
###############
# Build Matrix https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
###############
php:
- 7.1
# - 7.1
# - 7.2
env:
global:
secure: NW/EmJatN5pgd2RiwmZr5lK/+KX0JT+qaTi2i56h3uwNdq5w7iENI5RyJ8Gwz7RsKko3viAOKHmxJO5gYOA4FDR8Jc9l8Ioa6Pvw9Tw5l2Nv+KvIX2UPp4UuxLeJulMuqRnumR4S+dLpPh6xfDf/3aNyxVdZPp4Oui89PEnU/eY=
matrix:
- MAJOR_VERSION="3" MINOR_VERSION="0" PHPUNIT_VERSION="5"
- MAJOR_VERSION="3" MINOR_VERSION="1" PHPUNIT_VERSION="5"
- MAJOR_VERSION="3" MINOR_VERSION="2" PHPUNIT_VERSION="5"
- MAJOR_VERSION="3" MINOR_VERSION="3" PHPUNIT_VERSION="5"
- MAJOR_VERSION="3" MINOR_VERSION="4" PHPUNIT_VERSION="5"
- MAJOR_VERSION="3" MINOR_VERSION="5" PHPUNIT_VERSION="6"
- MAJOR_VERSION="3" MINOR_VERSION="6" PHPUNIT_VERSION="7"
- MAJOR_VERSION="3" MINOR_VERSION="7" PHPUNIT_VERSION="7"
- MAJOR_VERSION="3" MINOR_VERSION="8" PHPUNIT_VERSION="7"
- MAJOR_VERSION="4" MINOR_VERSION="0" PHPUNIT_VERSION="8"
###############
# Lifecycle https://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle
###############
before_install:
- phpenv config-rm xdebug.ini
- travis_retry composer self-update
install:
#- composer require friendsofphp/php-cs-fixer:~2.0
- composer require phpunit/phpunit:~${PHPUNIT_VERSION}.0 orchestra/testbench:${MAJOR_VERSION}.${MINOR_VERSION}.* --no-interaction
- php --version
- composer --version
- vendor/bin/phpunit --version
script:
#- vendor/bin/php-cs-fixer -q fix src --config-file=.php_cs || true
- vendor/bin/phpunit
#after_success:
# - ./scripts/after_success.sh
#
#deploy:
# skip_cleanup: true
# provider: script
# script: scripts/after_success.sh
# on:
# repo: RobinRadic/blade-extensions
# tags: false
## all_branches: true
# php: 5.6
# condition: $MINOR_VERSION = "4"
# branch: develop
# - curl -o /tmp/travis-automerge https://raw.githubusercontent.com/cdown/travis-automerge/master/travis-automerge
# - chmod a+x /tmp/travis-automerge
# - BRANCHES_TO_MERGE_REGEX='^f' BRANCH_TO_MERGE_INTO=master GITHUB_REPO=robinradic/blade-extensions /tmp/travis-automerge
# travis encrypt -r RobinRadic/blade-extensions 'GITHUB_SECRET_TOKEN=<your token> TRAVIS_TOKEN'
#
#deploy:
# skip_cleanup: true
# provider: script
# script: scripts/after_success.sh
# on:
# repo: RobinRadic/blade-extensions
# tags: false
# all_branches: true
# php: 5.6
# condition: $MINOR_VERSION = "4"
# branch: develop
#OPTIONAL Install apt addons
#OPTIONAL Install cache components
#before_install
#install
#before_script
#script
#OPTIONAL before_cache (for cleaning up cache)
#after_success or after_failure
#OPTIONAL before_deploy
#OPTIONAL deploy
#OPTIONAL after_deploy
#after_script
###Breaking the Build #
#
#If any of the commands in the first four stages of the build lifecycle return a non-zero exit code, the build is broken:
#
#If before_install, install or before_script return a non-zero exit code, the build is errored and stops immediately.
#If script returns a non-zero exit code, the build is failed, but continues to run before being marked as failed.
#The exit code of after_success, after_failure, after_script and subsequent stages do not affect the build result. However, if one of these stages times out, the build is marked as a failure.
### The following default environment variables are available to all builds.
# https://docs.travis-ci.com/user/environment-variables/
# - CI=true
# - TRAVIS=true
# - CONTINUOUS_INTEGRATION=true
# - DEBIAN_FRONTEND=noninteractive
# - HAS_JOSH_K_SEAL_OF_APPROVAL=true
# - USER=travis (do not depend on this value)
# - HOME=/home/travis (do not depend on this value)
# - LANG=en_US.UTF-8
# - LC_ALL=en_US.UTF-8
# - RAILS_ENV=test
# - RACK_ENV=test
# - MERB_ENV=test
# - JRUBY_OPTS="--server -Dcext.enabled=false -Xcompile.invokedynamic=false"
# - JAVA_HOME is set to the appropriate value.
# Additionally, Travis CI sets environment variables you can use in your build, e.g. to tag the build, or to run post-build deployments.
# - TRAVIS_ALLOW_FAILURE: Set to true if the job is allowed to fail. false if not.
# - TRAVIS_BRANCH: For builds not triggered by a pull request this is the name of the branch currently being built; whereas for builds triggered by a pull request this is the name of the branch targeted by the pull request (in many cases this will be master).
# - TRAVIS_BUILD_DIR: The absolute path to the directory where the repository being built has been copied on the worker.
# - TRAVIS_BUILD_ID: The id of the current build that Travis CI uses internally.
# - TRAVIS_BUILD_NUMBER: The number of the current build (for example, “4”).
# - TRAVIS_COMMIT: The commit that the current build is testing.
# - TRAVIS_COMMIT_MESSAGE: The commit subject and body, unwrapped.
# - TRAVIS_COMMIT_RANGE: The range of commits that were included in the push or pull request. (Note that this is empty for builds triggered by the initial commit of a new branch.)
# - TRAVIS_EVENT_TYPE: Indicates how the build was triggered. One of push, pull_request, api, cron.
# - TRAVIS_JOB_ID: The id of the current job that Travis CI uses internally.
# - TRAVIS_JOB_NUMBER: The number of the current job (for example, “4.1”).
# - TRAVIS_OS_NAME: On multi-OS builds, this value indicates the platform the job is running on. Values are linux and osx currently, to be extended in the future.
# - TRAVIS_PULL_REQUEST: The pull request number if the current job is a pull request, “false” if it’s not a pull request.
# - TRAVIS_PULL_REQUEST_BRANCH: If the current job is a pull request, the name of the branch from which the PR originated. "" if the current job is a push build.
# - TRAVIS_PULL_REQUEST_SHA: If the current job is a pull request, the commit SHA of the HEAD commit of the PR. If it is a push build, "".
# - TRAVIS_PULL_REQUEST_SLUG: If the current job is a pull request, the slug (in the form owner_name/repo_name) of the repository from which the PR originated. If it is a push build, "".
# - TRAVIS_REPO_SLUG: The slug (in form: owner_name/repo_name) of the repository currently being built. (for example, “travis-ci/travis-build”).
# - TRAVIS_SECURE_ENV_VARS: Whether or not encrypted environment vars are being used. This value is either “true” or “false”.
# - TRAVIS_SUDO: true or false based on whether sudo is enabled.
# - TRAVIS_TEST_RESULT: is set to 0 if the build is successful and 1 if the build is broken.
# - TRAVIS_TAG: If the current build is for a git tag, this variable is set to the tag’s name.
# Language-specific builds expose additional environment variables representing the current version being used to run the build. Whether or not they’re set depends on the language you’re using.
# - TRAVIS_DART_VERSION
# - TRAVIS_GO_VERSION
# - TRAVIS_HAXE_VERSION
# - TRAVIS_JDK_VERSION
# - TRAVIS_JULIA_VERSION
# - TRAVIS_NODE_VERSION
# - TRAVIS_OTP_RELEASE
# - TRAVIS_PERL_VERSION
# - TRAVIS_PHP_VERSION
# - TRAVIS_PYTHON_VERSION
# - TRAVIS_R_VERSION
# - TRAVIS_RUBY_VERSION
# - TRAVIS_RUST_VERSION
# - TRAVIS_SCALA_VERSION