-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1013 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
# TravisCI configuration for mralaminahamed/phpstan-forminator-stubs
language: "php"
os:
- "linux"
dist: "bionic"
cache:
directories:
- "$HOME/.composer/cache"
php:
- "8.1"
- "8.0"
- "7.4"
before_install:
- "phpenv config-rm xdebug.ini"
- "composer validate --strict"
install:
- "composer update --no-interaction"
## Reinstall sub-packages into /packages/
#- "composer update --no-interaction"
- |
LATEST="$(jq -r '."require"."forminator/forminator"' source/composer.json)"
wget -P source/ "https://downloads.wordpress.org/plugin/forminator.${LATEST}.zip"
unzip -q -d source/ "source/forminator.${LATEST}.zip"
before_script:
- "cat ./source/forminator/forminator.php"
script:
- "bash -x ./generate.sh"
- "php -l forminator-constants-stubs.php"
- "php -l forminator-stubs.php"
- "git diff --exit-code"
- |
php -r 'require "vendor/php-stubs/wordpress-stubs/wordpress-stubs.php"; require "forminator-constants-stubs.php"; require "forminator-stubs.php";'