Skip to content

Commit 19840ad

Browse files
committed
Configures Travis CI to run unit and integration tests in parallel.
1 parent acae112 commit 19840ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ php:
55
- '7.1'
66
- nightly
77

8+
# Configure environment to run test suites in parallel.
9+
env:
10+
- TEST_SUITE = "Unit Tests"
11+
- TEST_SUITE = "Integration Tests"
12+
813
# Install test coverage package.
914
install:
1015
- composer require satooshi/php-coveralls
@@ -17,7 +22,7 @@ before_script:
1722

1823
# Run tests and generate test coverage report.
1924
script:
20-
- phpunit -d api_key=$API_KEY --coverage-clover build/logs/clover.xml
25+
- phpunit -d api_key=$API_KEY --testsuite $TEST_SUITE --coverage-clover build/logs/clover.xml
2126

2227
# Submit test coverage report to Coveralls.
2328
after_success:

0 commit comments

Comments
 (0)