Skip to content

Commit e0f2019

Browse files
committed
Run unit and performance tests separately on Travis
1 parent 20c60a4 commit e0f2019

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/travis-build-script.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
1515
swift --version
1616
swift package clean
1717
swift build
18-
swift test
18+
swift test --parallel --filter UnitTests
19+
swift test --filter PerformanceTests
1920

2021
# 2. Test using xcodebuild
2122
echo -e "\nBuilding with xcodebuild\n========================"
@@ -43,5 +44,5 @@ elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
4344
# Share the current directory (where Travis checked out the repository)
4445
# with the Docker container.
4546
# Then, in the container, cd into that directory and run the tests.
46-
docker run --volume "$(pwd):/package" "${DOCKER_IMAGE}" /bin/bash -c "cd /package; swift --version; swift package clean; swift build; swift test"
47+
docker run --volume "$(pwd):/package" "${DOCKER_IMAGE}" /bin/bash -c "cd /package; swift --version; swift package clean; swift build; swift test --parallel --filter UnitTests; swift test --filter PerformanceTests"
4748
fi

0 commit comments

Comments
 (0)