-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
16 lines (16 loc) · 782 Bytes
/
Copy path.travis.yml
File metadata and controls
16 lines (16 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
os:
- linux
- osx
osx_image: xcode11.2
dist: trusty
language: generic
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then swiftenv install $(cat .swift-version) | grep -qe "\(been\|already\) installed"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then swift package generate-xcodeproj --enable-code-coverage; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait swift test; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project ConfigParser.xcodeproj -scheme ConfigParser-Package build test; fi
after_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash <(curl -s https://codecov.io/bash) -J 'ConfigParser'; fi