Skip to content

Commit 50e38a0

Browse files
authored
Refactor dependency checker and test scripts (GoogleCloudPlatform#364)
1 parent 3e53dcd commit 50e38a0

File tree

10 files changed

+422
-145
lines changed

10 files changed

+422
-145
lines changed

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,24 @@ env:
3535
- TEST_BUILD_DIR=$TRAVIS_BUILD_DIR
3636

3737
before_install:
38-
- pushd ${HOME}
3938
- git clone https://github.com/GoogleCloudPlatform/php-tools.git
4039
- php php-tools/scripts/dump_credentials.php
4140
- travis_retry php-tools/scripts/install_test_deps.sh
42-
- popd
4341
- mkdir -p build/logs
4442

4543
before_script:
4644
- pecl install grpc
4745

4846
script:
49-
- testing/run_test_suite.sh
47+
- # only run on PHP 5.6
48+
if [ "${RUN_CS_FIXER}" = "true" ]; then
49+
testing/run_cs_check.sh;
50+
fi
51+
- testing/run_test_suite.sh;
52+
- # only run for travis crons
53+
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
54+
testing/run_dependency_check.sh;
55+
fi
5056

5157
after_success:
5258
- composer require "satooshi/php-coveralls:^1.0"

0 commit comments

Comments
 (0)