Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Jul 14, 2021
1 parent 8c93d36 commit 24f8dd3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# TravisCI configuration for php-stubs/genesis-stubs

language: "php"
os:
- "linux"
dist: "bionic"

cache:
directories:
- "$HOME/.composer/cache"

php:
- "7.4"
- "7.3"
- "7.2"
- "7.1"
# giacocorsiglia/stubs-generator does not support PHP 7.0

before_install:
- "phpenv config-rm xdebug.ini"
- "composer validate --strict"

install:
- "wget -P source 'https://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa'"
- "unzip -d source source/genesis.*.zip"
- "composer update --no-interaction --no-suggest"

script:
- "bash -x ./generate.sh"
- "php -l genesis-stubs.php"
- "git diff --exit-code"
- |
php -r 'require "vendor/php-stubs/wordpress-stubs/wordpress-stubs.php"; require "genesis-stubs";'

0 comments on commit 24f8dd3

Please # to comment.