-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
40 lines (34 loc) · 909 Bytes
/
.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
# https://docs.travis-ci.com/user/reference/overview/#linux
dist: bionic
language: php
cache:
directories:
- "$HOME/.composer/cache"
php:
- "7.3"
- "7.4"
- "8.0"
before_install:
- |
phpenv config-rm xdebug.ini
- |
composer validate --strict
install:
- |
composer update --no-interaction
- |
wget -nv -O "source/composer.lock" "https://github.com/wp-cli/wp-cli-bundle/raw/v$(jq -r '."version"' source/composer.json)/composer.lock"
composer --working-dir=source/ install --no-interaction --no-dev
script:
- |
bash -x ./generate.sh
- |
php -l wp-cli-stubs.php
- |
php -l wp-cli-commands-stubs.php
- |
php -l wp-cli-i18n-stubs.php
- |
git diff --exit-code
- |
php -r 'require "vendor/php-stubs/wordpress-stubs/wordpress-stubs.php"; require "wp-cli-stubs.php"; require "wp-cli-commands-stubs.php"; require "wp-cli-i18n-stubs.php";'