Skip to content

Commit

Permalink
Add Linux tests on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjgalloway committed Jun 12, 2020
1 parent 409531e commit 2ba812f
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
language: swift
osx_image: xcode11.5
os: osx
install:
- swift package update
script:
- swift build
- swift test --enable-code-coverage
after_success:
- xcrun llvm-cov export -format="lcov" .build/debug/cgtcalcPackageTests.xctest/Contents/MacOS/cgtcalcPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- bash <(curl -s https://codecov.io/bash)
env:
global:
- SWIFT_BRANCH=swift-5.2.4-release
- SWIFT_VERSION=swift-5.2.4-RELEASE
matrix:
include:
- os: osx
osx_image: xcode11.5
language: swift
install:
- swift package update
script:
- swift build
- swift test --enable-code-coverage
after_success:
- xcrun llvm-cov export -format="lcov" .build/debug/cgtcalcPackageTests.xctest/Contents/MacOS/cgtcalcPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- bash <(curl -s https://codecov.io/bash)
- os: linux
dist: bionic
language: generic
sudo: required
install:
- sudo apt-get install clang libicu-dev
- mkdir swift
- curl https://swift.org/builds/$SWIFT_BRANCH/ubuntu1804/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu18.04.tar.gz -s | tar xz -C swift &> /dev/null
- export PATH="$(pwd)/swift/$SWIFT_VERSION-ubuntu18.04/usr/bin:$PATH"
- swift package update
script:
- swift test

0 comments on commit 2ba812f

Please sign in to comment.