-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (34 loc) · 1.56 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
matrix:
include:
- os: linux
language: generic
env:
- SWIFT_PATH=${PWD}/swift-3.1-RELEASE-ubuntu14.04
- SWIFT_PM=${PWD}/swift-package-manager
- SWIFT_PM_BIN=${PWD}/.build
dist: trusty
sudo: required
cache:
directories:
- ${SWIFT_PATH}
- ${SWIFT_PM}
- ${SWIFT_PM_BIN}
before_install:
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
- if find "${SWIFT_PATH}" -maxdepth 0 -empty | grep -q .; then wget https://swift.org/builds/swift-3.1-release/ubuntu1404/swift-3.1-RELEASE/swift-3.1-RELEASE-ubuntu14.04.tar.gz; tar xzf swift-3.1-RELEASE-ubuntu14.04.tar.gz; fi
- export PATH=${PWD}/swift-3.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
script:
- if find "${SWIFT_PM}" -maxdepth 0 -empty | grep -q .; then git clone https://github.com/apple/swift-package-manager; cd swift-package-manager && git checkout 58f859a && cd ../; swift-package-manager/Utilities/bootstrap; fi
- ${SWIFT_PM_BIN}/debug/swift-build
- ${SWIFT_PM_BIN}/debug/swift-test --parallel
- os: osx
language: swift
osx_image: xcode8.3
script:
- xcodebuild -project MammutAPI.xcodeproj -scheme UnitTests -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6S,OS=10.3' -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES build test
after_success:
- bash <(curl -s https://codecov.io/bash) -cF ios
notifications:
email:
on_success: never
on_failure: change