Skip to content

Commit 24f8dd3

Browse files
committed
Add CI
1 parent 8c93d36 commit 24f8dd3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.travis.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# TravisCI configuration for php-stubs/genesis-stubs
2+
3+
language: "php"
4+
os:
5+
- "linux"
6+
dist: "bionic"
7+
8+
cache:
9+
directories:
10+
- "$HOME/.composer/cache"
11+
12+
php:
13+
- "7.4"
14+
- "7.3"
15+
- "7.2"
16+
- "7.1"
17+
# giacocorsiglia/stubs-generator does not support PHP 7.0
18+
19+
before_install:
20+
- "phpenv config-rm xdebug.ini"
21+
- "composer validate --strict"
22+
23+
install:
24+
- "wget -P source 'https://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa'"
25+
- "unzip -d source source/genesis.*.zip"
26+
- "composer update --no-interaction --no-suggest"
27+
28+
script:
29+
- "bash -x ./generate.sh"
30+
- "php -l genesis-stubs.php"
31+
- "git diff --exit-code"
32+
- |
33+
php -r 'require "vendor/php-stubs/wordpress-stubs/wordpress-stubs.php"; require "genesis-stubs";'

0 commit comments

Comments
 (0)