|
| 1 | +language: php |
| 2 | + |
| 3 | +sudo: false |
| 4 | +dist: trusty |
| 5 | + |
| 6 | +git: |
| 7 | + depth: 3 |
| 8 | + |
| 9 | +notifications: |
| 10 | + email: false |
| 11 | + slack: |
| 12 | + secure: k23wSAJ6NzLU2O/DvstKfZfuf2KzoGWG5wn2AKE0/IFpdwAyR1UFadiIz4v2CzOnQIG7uLeNIsG8wzG2iMXuVMy77evsF5vdGfN1HfFVLmmZBsuVXgfRWr0PWbGP3S7cZBbJoQdLxqFMRP6MZGb27T4vgoCNIsD7aYXu9vXWtDJmi/gJb0ToAsejfj1UV9BA4YX9JoFS4LXrFx7REmbwJQCelFUevz3NVgdotfZlo/VFenCrYg8KNjgocd9b7SeZf6B4I1C42D+sBOfz6kGTYPt6rMZ8RD1Nzcmc2miWSca64APKJpcxXVdtgztjz92xFfYfaPcT9JH8vAl2TjR4dqWEDzs/6rsUyCiXkmEwluV+x9ygfbdaEHd1EGneQ8zNa761xsjvzGaS6OysSSOU/QKy8ummr8vczX0q4Iv8WO4fKxlxmOORxhm5ri3QAVLhltwLXbuCw9WF5Y87vpFxd+C6pG7U4/uIxv5ZEOhJdj7effk2p9kgO6b9IC/S3bd3LneGMkhMvLffObsQeqN+8D86FTG7O7hr9SJcrHKiNcHkAyokJGXBl5mmEDqULOHsNMekSCRADUn8nuWbWLsg28NzQelIZd4Uf46wuzvUXk0vrmjY2Ro1lnGk6upwwUUV64uh8pPgcLqTfPZGW3zsTY4bx/tNwCQELCQ20YxUsu0= |
| 13 | + |
| 14 | +branches: |
| 15 | + only: |
| 16 | + - master |
| 17 | + - "/^v[0-9\\.]+/" |
| 18 | + |
| 19 | +cache: |
| 20 | + directories: |
| 21 | + - "${HOME}/.composer/cache" |
| 22 | + - "${HOME}/.npm" |
| 23 | + - "${TRAVIS_BUILD_DIR}/.plugin" |
| 24 | + |
| 25 | +stages: |
| 26 | + - name: check |
| 27 | + if: branch = master and tag IS blank and type IN (pull_request, api, cron) |
| 28 | + - name: test |
| 29 | + if: branch = master and tag IS blank and type IN (pull_request, api) |
| 30 | + - name: test trunk |
| 31 | + if: branch = master and tag IS blank and type IN (pull_request, api, cron) |
| 32 | + - name: prepare |
| 33 | + if: branch = master and tag IS blank and type IN (pull_request, api) |
| 34 | + - name: deploy |
| 35 | + if: tag IS present |
| 36 | + |
| 37 | +before_script: |
| 38 | + - git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci |
| 39 | + - bash travis-ci/bin/prepare.sh |
| 40 | + |
| 41 | +jobs: |
| 42 | + fast_finish: true |
| 43 | + include: |
| 44 | + - stage: check |
| 45 | + language: php |
| 46 | + php: '7.2' |
| 47 | + script: bash travis-ci/bin/php/phpcs.sh |
| 48 | + - stage: check |
| 49 | + language: php |
| 50 | + php: '7.2' |
| 51 | + script: bash travis-ci/bin/php/phpmd.sh |
| 52 | + |
| 53 | + - stage: check |
| 54 | + language: node_js |
| 55 | + node_js: '11' |
| 56 | + dist: trusty |
| 57 | + script: bash travis-ci/bin/js/js-lint.sh |
| 58 | + |
| 59 | + |
| 60 | + - stage: test |
| 61 | + language: php |
| 62 | + php: '7.3' |
| 63 | + env: |
| 64 | + - WP_VERSION=latest |
| 65 | + - COVERAGE_REPORT=1 |
| 66 | + - ACTIVATE_POPULAR_PLUGINS=1 |
| 67 | + script: bash travis-ci/bin/php/wp-test.sh |
| 68 | + - stage: test |
| 69 | + language: php |
| 70 | + php: '7.3' |
| 71 | + env: |
| 72 | + - WP_VERSION=latest |
| 73 | + - WP_MULTISITE=1 |
| 74 | + script: bash travis-ci/bin/php/wp-test.sh |
| 75 | + - stage: test |
| 76 | + language: php |
| 77 | + php: '7.2' |
| 78 | + env: WP_VERSION=latest |
| 79 | + script: bash travis-ci/bin/php/wp-test.sh |
| 80 | + - stage: test |
| 81 | + language: php |
| 82 | + php: '7.2' |
| 83 | + env: |
| 84 | + - WP_VERSION=5.2 |
| 85 | + - WP_MULTISITE=1 |
| 86 | + - COVERAGE_REPORT=1 |
| 87 | + script: bash travis-ci/bin/php/wp-test.sh |
| 88 | + - stage: test |
| 89 | + language: php |
| 90 | + php: '7.1' |
| 91 | + env: WP_VERSION=latest |
| 92 | + script: bash travis-ci/bin/php/wp-test.sh |
| 93 | + - stage: test |
| 94 | + language: php |
| 95 | + php: '7.1' |
| 96 | + env: |
| 97 | + - WP_VERSION=5.1 |
| 98 | + - WP_MULTISITE=1 |
| 99 | + - COVERAGE_REPORT=1 |
| 100 | + script: bash travis-ci/bin/php/wp-test.sh |
| 101 | + - stage: test |
| 102 | + language: php |
| 103 | + php: '7.0' |
| 104 | + env: |
| 105 | + - WP_VERSION=5.0 |
| 106 | + - COVERAGE_REPORT=1 |
| 107 | + script: bash travis-ci/bin/php/wp-test.sh |
| 108 | + - stage: test |
| 109 | + language: php |
| 110 | + php: '7.0' |
| 111 | + env: |
| 112 | + - WP_VERSION=latest |
| 113 | + - WP_MULTISITE=1 |
| 114 | + script: bash travis-ci/bin/php/wp-test.sh |
| 115 | + - stage: test |
| 116 | + language: php |
| 117 | + php: '5.6' |
| 118 | + env: |
| 119 | + - WP_VERSION=latest |
| 120 | + - COVERAGE_REPORT=1 |
| 121 | + script: bash travis-ci/bin/php/wp-test.sh |
| 122 | + - stage: test |
| 123 | + language: php |
| 124 | + php: '5.6' |
| 125 | + env: |
| 126 | + - WP_VERSION=5.0 |
| 127 | + - WP_MULTISITE=1 |
| 128 | + - COVERAGE_REPORT=1 |
| 129 | + script: bash travis-ci/bin/php/wp-test.sh |
| 130 | + - stage: test |
| 131 | + language: php |
| 132 | + php: '5.6' |
| 133 | + env: WP_VERSION=4.6 |
| 134 | + script: bash travis-ci/bin/php/wp-test.sh |
| 135 | + - stage: test |
| 136 | + language: php |
| 137 | + php: '5.6' |
| 138 | + env: WP_VERSION=4.5 |
| 139 | + script: bash travis-ci/bin/php/wp-test.sh |
| 140 | + - stage: test |
| 141 | + language: php |
| 142 | + php: '5.6' |
| 143 | + env: WP_VERSION=3.9 |
| 144 | + script: bash travis-ci/bin/php/wp-test.sh |
| 145 | + |
| 146 | + - stage: test |
| 147 | + language: node_js |
| 148 | + node_js: '10' |
| 149 | + dist: trusty |
| 150 | + script: bash travis-ci/bin/js/js-test.sh |
| 151 | + - stage: test |
| 152 | + language: node_js |
| 153 | + node_js: '11' |
| 154 | + dist: trusty |
| 155 | + env: COVERAGE_REPORT=1 |
| 156 | + script: bash travis-ci/bin/js/js-test.sh |
| 157 | + |
| 158 | + |
| 159 | + - stage: test trunk |
| 160 | + language: php |
| 161 | + php: '7.3' |
| 162 | + env: |
| 163 | + - WP_VERSION=trunk |
| 164 | + - WP_MULTISITE=1 |
| 165 | + - ACTIVATE_POPULAR_PLUGINS=1 |
| 166 | + script: bash travis-ci/bin/php/wp-test.sh |
| 167 | + |
| 168 | + - stage: test trunk |
| 169 | + language: php |
| 170 | + php: '5.6' |
| 171 | + env: WP_VERSION=trunk |
| 172 | + script: bash travis-ci/bin/php/wp-test.sh |
| 173 | + |
| 174 | + |
| 175 | + - stage: prepare |
| 176 | + language: node_js |
| 177 | + node_js: '11' |
| 178 | + dist: trusty |
| 179 | + script: |
| 180 | + - source travis-ci/bin/deploy/env.sh |
| 181 | + - bash travis-ci/bin/deploy/wp-check-diff.sh |
| 182 | + |
| 183 | + |
| 184 | + - stage: deploy |
| 185 | + language: node_js |
| 186 | + node_js: '11' |
| 187 | + dist: trusty |
| 188 | + script: skip |
| 189 | + before_deploy: |
| 190 | + - source travis-ci/bin/deploy/env.sh |
| 191 | + - bash travis-ci/bin/deploy/create.sh |
| 192 | + deploy: |
| 193 | + provider: releases |
| 194 | + skip_cleanup: true |
| 195 | + name: ${RELEASE_TITLE} |
| 196 | + tag_name: ${RELEASE_TAG} |
| 197 | + draft: true |
| 198 | + api_key: |
| 199 | + secure: SED2xsuudQql6XDDhUXESghmbqzuOrxKMMM/jdRBSkj4IBkUkmq+273uiFeZKdNau/CgM4uqaFus2LFcGyJdLkA+HlO1aP+1yDMzCKoMVRuDRk4foo3/EiS21hYX4RmHLzERSlM9EKjfH1GN37v01LqIV+59NmSwiRBMXkIOaeGC3lVXeT6oeUnCvPfQjTc9Da24mCObHwPqgfWIjw4SaA4WGT+aEvjv9xLZst8c68/P/wz77eZsrgJMxcXKn/zr/OrlYUeQdPhSQLLU2BSI4BoSqPxI6EjQz6W7NumRHyTm0b7D6y5C9SyvaC8A7+iibdC5xWGxfHGORaA3ix8T+ihCnK/dDSelcUAjxB/Cp1T3BJCTCW1fnqRR1g86ddulzy2oJBhuGyxHkWcmTR34tp59bTIA6WkEAXPg9TNOs5LALDXK3scy+pQ4u+wu3yxyGVJon6su/0j1r77WEt9O0Ob6UqeYtQ+CHynU4Ix2xzH7jgYfPBCJIIVm4MPGiXQVW+YoRPNGGsreNe2rvVW3FrA3KoBZvPI2RI44jx2Zf1SIMPEVi5zSgqEhoZMnpXrxedphOvJ86EgrByfd9vr3b9rW4/qXZy2f3Kjt41XVou3fqbR0vrbTbClzXwqHzVssV+59S/nB//9ACfHYBZQrURR0N00060gLoFyzEz37Kcc= |
| 200 | + file: ${RELEASE_FILE} |
| 201 | + overwrite: true |
| 202 | + on: |
| 203 | + tags: true |
| 204 | + |
| 205 | + - stage: deploy |
| 206 | + language: node_js |
| 207 | + node_js: '11' |
| 208 | + dist: trusty |
| 209 | + script: skip |
| 210 | + before_deploy: |
| 211 | + - source travis-ci/bin/deploy/env.sh |
| 212 | + deploy: |
| 213 | + provider: script |
| 214 | + skip_cleanup: true |
| 215 | + script: bash travis-ci/bin/deploy/wp-release.sh |
| 216 | + on: |
| 217 | + tags: true |
| 218 | + |
| 219 | + allow_failures: |
| 220 | + - env: WP_VERSION=4.5 |
| 221 | + - env: WP_VERSION=3.9 |
0 commit comments