Skip to content

Commit 4a745e3

Browse files
committed
Add benchmark stage to CI
1 parent 9256c28 commit 4a745e3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ jobs:
2525
- swift test --filter BitByteDataTests.LsbBitWriterTests
2626
- swift test --filter BitByteDataTests.MsbBitWriterTests
2727
- swift build -c release # Check Release build just in case.
28+
- stage: benchmark
29+
if: NOT (tag IS present)
30+
language: swift
31+
os: osx
32+
osx_image: xcode9.4
33+
script:
34+
- swift test -c release --filter BitByteDataTests.ByteReaderBenchmarks
35+
- language: generic
36+
os: linux
37+
dist: trusty
38+
install:
39+
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
40+
script:
41+
- swift test -c release --filter BitByteDataTests.ByteReaderBenchmarks
2842
- stage: deploy
2943
if: tag IS present
3044
language: generic

0 commit comments

Comments
 (0)