-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
59 lines (53 loc) · 1.74 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
51
52
53
54
55
56
57
58
59
language: node_js
node_js:
- 10
cache:
directories:
# General SwiftPM
- .build
# XCodebuild cache
- build
matrix:
include:
- os: osx
osx_image: xcode11.3
install:
- gem install bundler
- bundle install
- npm install -g danger
script:
- swift package generate-xcodeproj
- xcodebuild test -scheme DangerSwiftCoverage-Package -derivedDataPath build/ -enableCodeCoverage YES | XCPRETTY_JSON_FILE_OUTPUT=result.json xcpretty -f `xcpretty-json-formatter`
- DEBUG="*" swift run danger-swift ci
- os: osx
osx_image: xcode11.3
install:
- gem install bundler
- bundle install
- npm install -g danger
script:
- swift test --enable-code-coverage=true
- DEBUG="*" swift run danger-swift ci --id spmCoverage --dangerfile SPMDangerfile.swift
- os: osx
osx_image: xcode11.3
install:
- gem install bundler
- bundle install
- npm install -g danger
script:
- swift package generate-xcodeproj
- xcodebuild test -scheme DangerSwiftCoverage-Package -derivedDataPath build/ -resultBundlePath build/result -enableCodeCoverage YES
- DEBUG="*" swift run danger-swift ci --id customPath --dangerfile CustomPath.swift
- os: linux
language: generic
sudo: required
dist: trusty
install:
- gem install bundler
- bundle install
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
- swiftenv global 5.1
- npm install -g danger
script:
- swift test --enable-code-coverage=true
- DEBUG="*" swift run danger-swift ci --id spmCoverage --dangerfile SPMDangerfile.swift