-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
21 lines (20 loc) · 991 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
matrix:
include:
- os: osx
osx_image: xcode12.2
sudo: required
- os: linux
language: generic
dist: bionic
sudo: required
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew uninstall swiftlint || true && brew install swiftlint ; fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" ; fi
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then swiftlint ; fi
- swift test -Xswiftc -swift-version -Xswiftc 4
- swift test -Xswiftc -swift-version -Xswiftc 4.2
- swift test -Xswiftc -swift-version -Xswiftc 5 --enable-code-coverage
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then xcrun llvm-cov export -format="lcov" $TRAVIS_BUILD_DIR/.build/debug/jsonlogicPackageTests.xctest/Contents/MacOS/jsonlogicPackageTests -instr-profile $TRAVIS_BUILD_DIR/.build/debug/codecov/default.profdata > $TRAVIS_BUILD_DIR/coverage.lcov ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash <(curl -s https://codecov.io/bash) ; fi