Skip to content

Commit e060391

Browse files
Fix linux generated test check
1 parent dac9ed2 commit e060391

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ matrix:
1313
script: ./BuildScripts/osx_script.sh
1414
# Coverage delivery to codeclimate setup
1515
# codeclimate only shows us results of one run, so we just run it once on last xcode release.
16-
before_script: ./BuildScripts/osx_coverage_before.sh
16+
before_script:
17+
- ./BuildScripts/osx_check_test_generated.sh
18+
- ./BuildScripts/osx_coverage_before.sh
1719
after_script: ./BuildScripts/osx_coverage_after.sh
1820

1921
- os: linux
@@ -26,4 +28,3 @@ matrix:
2628
# https://docs.travis-ci.com/user/installing-dependencies/#Installing-Projects-from-Source
2729
- PATH=$PATH:$PWD/swift/usr/bin/
2830
script: ./BuildScripts/linux_script.sh
29-
before_script: ./BuildScripts/linux_check_test_generated.sh

BuildScripts/linux_check_test_generated.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

BuildScripts/linux_install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -ev
23
SWIFT_URL=$1
34

45
wget ${SWIFT_URL} -O /tmp/swift.tar.gz

BuildScripts/linux_script.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
set -ev
23
swift test -c debug --filter "SwiftGraphTests"
34
# swift test -c release -Xswiftc -enable-testing --filter "SwiftGraphPerformanceTests"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -ev
3+
4+
# Assert that the linux test files are generated.
5+
# We need to make this test here since the command only works on osx.
6+
swift test --generate-linuxmain
7+
git diff --exit-code

0 commit comments

Comments
 (0)