File tree Expand file tree Collapse file tree 2 files changed +84
-1
lines changed
Expand file tree Collapse file tree 2 files changed +84
-1
lines changed Original file line number Diff line number Diff line change @@ -682,7 +682,7 @@ public function package_tests( $args, $assoc_args ) {
682682 $ travis_tag_appends = [];
683683 $ travis_append = '' ;
684684 if ( 'travis ' === $ assoc_args ['ci ' ] ) {
685- $ copy_source [ $ package_root ]['.travis.yml ' ] = $ package_dir ;
685+ $ copy_source [ $ package_root ]['templates/ .travis.yml ' ] = $ package_dir ;
686686
687687 // Allow a package to overwrite or append to Travis tags.
688688 foreach ( $ travis_tags as $ travis_tag ) {
Original file line number Diff line number Diff line change 1+ os : linux
2+ dist : xenial
3+
4+ language : php
5+ php : 7.4
6+
7+ services :
8+ - mysql
9+
10+ notifications :
11+ email :
12+ on_success : never
13+ on_failure : change
14+
15+ branches :
16+ only :
17+ - master
18+
19+ cache :
20+ directories :
21+ - $HOME/.composer/cache
22+
23+ env :
24+ global :
25+ - PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
26+ - WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin"
27+
28+ before_install :
29+ - |
30+ # Remove Xdebug for a huge performance increase:
31+ if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
32+ phpenv config-rm xdebug.ini
33+ else
34+ echo "xdebug.ini does not exist"
35+ fi
36+ - |
37+ # Raise PHP memory limit to 2048MB
38+ echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
39+ - composer validate
40+
41+ install :
42+ - composer install
43+ - composer prepare-tests
44+
45+ script :
46+ - composer phpunit
47+ - composer behat || composer behat-rerun
48+
49+ jobs :
50+ include :
51+ - stage : test
52+ php : nightly
53+ env : WP_VERSION=trunk
54+ - stage : test
55+ php : 7.4
56+ env : WP_VERSION=latest
57+ - stage : test
58+ php : 7.3
59+ env : WP_VERSION=latest
60+ - stage : test
61+ php : 7.2
62+ env : WP_VERSION=latest
63+ - stage : test
64+ php : 7.1
65+ env : WP_VERSION=latest
66+ - stage : test
67+ php : 7.0
68+ env : WP_VERSION=latest
69+ - stage : test
70+ php : 5.6
71+ env : WP_VERSION=latest
72+ - stage : test
73+ php : 5.6
74+ env : WP_VERSION=3.7.11
75+ dist : trusty
76+ - stage : test
77+ php : 5.6
78+ env : WP_VERSION=trunk
79+
80+ allow_failures :
81+ - stage : test
82+ php : nightly
83+ env : WP_VERSION=trunk
You can’t perform that action at this time.
0 commit comments