-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (44 loc) · 1.07 KB
/
.travis.yml
File metadata and controls
49 lines (44 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: minimal
dist: xenial
env:
global:
- REPO=stdswift/build
matrix:
- SWIFT=5.0 OS=trusty
- SWIFT=5.0 OS=xenial
- SWIFT=5.0 OS=bionic
matrix:
include:
- os: osx
env:
osx_image: xcode10.2
install:
- |
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
docker pull $REPO:$OS-$SWIFT
fi
script:
- |
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
docker run --volume `pwd`:/code --workdir /code $REPO:$OS-$SWIFT swift test
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
swift test --generate-linuxmain && git diff --exit-code
swift test --enable-code-coverage
fi
after_success:
- |
set -e
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
profile=.build/debug/codecov/default.profdata
executable=.build/debug/XPKitPackageTests.xctest/Contents/MacOS/XPKitPackageTests
coverage=.build/debug/codecov/XPKit.coverage.txt
xcrun llvm-cov show -instr-profile $profile $executable > $coverage
bash <(curl -s https://codecov.io/bash) -f $coverage
fi