Skip to content

Commit

Permalink
TMP: limit travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed Apr 20, 2018
1 parent 84fefe6 commit 976e08f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
23 changes: 1 addition & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
dist: trusty # fix for travis not updating their HHVM images
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm

# only build master branch (and PRs)
branches:
Expand All @@ -31,7 +27,6 @@ script:
fi
- sh -c 'if [ "${PHPCS}" = "true" ]; then export RUN_PHPUNIT=false; fi'
- sh -c 'if [ "${RUN_PHPUNIT}" = "true" ]; then ./vendor/bin/phpunit -c ./phpunit.xml; fi'
- sh -c 'if [ "${RUN_PHPUNIT}" = "true" ]; then ./vendor/bin/phpunit -c ./phpunit-recovery.xml; fi';

# run phpcs when enabled
- sh -c 'if [ "${PHPCS}" = "true" ]; then ./vendor/bin/phpcs --standard=./phpcs.xml -n ./src/ && echo "PHPCS OK"; fi'
Expand All @@ -46,9 +41,6 @@ script:
fi
fi

# check coverage if report was generated (requires xdebug enabled)
- sh -c 'if [ -e clover.xml ]; then php coverage-checker.php clover.xml 70; fi'

after_script:
- |
if [ "${WITH_XDEBUG}" = "true" ]; then
Expand All @@ -72,17 +64,4 @@ env:
# BLOCKTRAIL_SDK_BTCCOM_API_ENDPOINT
- secure: "hJDN/XyeCJVi86R08zPN/xpI/7U+SU6tWmfnVp4wF6cyZmdDY6UztSa5FaS/RRh0mF2M66PoW00VxyoZ7dj0avZrZWwILYdBpwiIWCg2Ay7rkBGbE/kiWuMfOAVpf8x3zO/ArunJC7spiWW+amTFxk0sutkz84bLxyQahsPmVgE="
matrix:
- PHPCS=false WITH_XDEBUG=false # default disable phpcs run and disable xdebug

matrix:
exclude:
# exclude the php7.0 job without xdebug so we can add one with xdebug
- php: 7.0
env: PHPCS=false WITH_XDEBUG=false
include:
# php7.0 run with xdebug for code coverage (slooooow)
- php: 7.0
env: PHPCS=false WITH_XDEBUG=true
# php5.6 run with phpcs (won't run tests, only phpcs)
- php: 7.0
env: PHPCS=true WITH_XDEBUG=false
- PHPCS=false WITH_XDEBUG=true # default disable phpcs run and disable xdebug
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"spomky-labs/php-aes-gcm": "v1.2.0"
},
"require-dev": {
"phpunit/phpunit": "4.3.*",
"phpunit/phpunit": "5.*",
"mockery/mockery": "1.0.*",
"squizlabs/php_codesniffer": "2.*",
"php-coveralls/php-coveralls": "^1.0"
}
Expand Down
4 changes: 1 addition & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
>
<testsuites>
<testsuite name="Tests">
<directory>./tests/</directory>
<directory>./tests/V3Crypt/</directory>
<exclude>./tests/WalletRecoveryTest.php</exclude>
<directory>./tests/Wallet/</directory>
</testsuite>
</testsuites>

Expand Down

0 comments on commit 976e08f

Please sign in to comment.