-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (49 loc) · 1.87 KB
/
.travis.yml
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
50
jobs:
include:
- stage: OSX test and build xcode12
os: osx
osx_image: xcode12.3
language: objective-c
cache:
directories:
- $HOME/travis/.rvm/
before_install:
- gem install xcpretty
script:
- swift run --skip-update -c release --package-path BuildTools swiftformat --lint .
- swift run --skip-update -c release --package-path BuildTools swiftlint lint --strict .
- swift run --skip-update -c release --package-path BuildTools periphery scan
- set -o pipefail && swift test 2>&1 | xcpretty --color
- swift build -c release
- stage: OSX test and build xcode11
os: osx
osx_image: xcode11.5
language: objective-c
cache:
directories:
- $HOME/travis/.rvm/
- BuildTools/
before_install:
- gem install xcpretty
script:
- set -o pipefail && swift test --enable-code-coverage 2>&1 | xcpretty --color
- swift build -c release
- xcrun llvm-cov export -format="lcov" .build/debug/ShuskyPackageTests.xctest/Contents/MacOS/ShuskyPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- bash <(curl https://codecov.io/bash)
- stage: linux test
os: linux
dist: bionic
sudo: required
cache:
directories:
- $HOME/travis/.rvm/
- BuildTools/
before_install:
- wget https://swift.org/builds/swift-5.2-release/ubuntu1804/swift-5.2-RELEASE/swift-5.2-RELEASE-ubuntu18.04.tar.gz
- tar xzf swift-5.2-RELEASE-ubuntu18.04.tar.gz
- export PATH="${PWD}/swift-5.2-RELEASE-ubuntu18.04/usr/bin:$PATH"
- gem install xcpretty
script:
- export PATH="${PWD}/swift-5.2-RELEASE-ubuntu18.04/usr/bin:$PATH"
- set -o pipefail && swift test 2>&1 | xcpretty --color
- swift build -c release