forked from f-meloni/danger-swift-xcodesummary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (32 loc) · 1012 Bytes
/
.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
language: generic
cache:
directories:
# General SwiftPM
- .build
# XCodebuild cache
- build
matrix:
include:
- os: osx
osx_image: xcode11.2
install:
- gem install bundler
- bundle install
- npm install -g danger
script:
- swift package generate-xcodeproj
- xcodebuild test -scheme DangerXCodeSummary-Package -derivedDataPath Build/ -enableCodeCoverage YES | XCPRETTY_JSON_FILE_OUTPUT=result.json xcpretty -f `xcpretty-json-formatter`
- DEBUG="*" swift run danger-swift ci
- 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 | XCPRETTY_JSON_FILE_OUTPUT=result.json xcpretty -f `xcpretty-json-formatter`
- DEBUG="*" swift run danger-swift ci