-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (57 loc) · 2.52 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
60
61
62
63
64
# safelist
branches:
only:
- master
language: generic
env:
global:
- PROJECT=HyperSpace
matrix:
include:
- { os: osx, language: objective-c, osx_image: xcode9.3, env: 'DEPMGT=Carthage PLATFORM=macOS' }
- { os: osx, language: objective-c, osx_image: xcode9.3, env: 'DEPMGT=Carthage PLATFORM=iOS' }
- { os: osx, language: objective-c, osx_image: xcode9.3, env: 'DEPMGT=Carthage PLATFORM=watchOS' }
- { os: osx, language: objective-c, osx_image: xcode9.3, env: 'DEPMGT=Carthage PLATFORM=tvOS' }
- { os: osx, language: objective-c, osx_image: xcode9.3, env: 'DEPMGT=SwiftPM' }
- { os: linux, language: generic, dist: trusty, env: 'DEPMGT=SwiftPM SWIFT_VERSION=4.1', sudo: required }
# - { os: osx, language: objective-c, osx_image: xcode9.2, env: 'DEPMGT=Carthage PLATFORM=macOS DESTINATION="platform=OS X"' }
# - { os: osx, language: objective-c, osx_image: xcode9.2, env: 'DEPMGT=Carthage PLATFORM=iOS DESTINATION="platform=iOS Simulator,name=iPhone 8"' }
# - { os: osx, language: objective-c, osx_image: xcode9.2, env: 'DEPMGT=Carthage PLATFORM=watchOS DESTINATION="platform=watchOS Simulator,name=Apple Watch - 38mm"'}
# - { os: osx, language: objective-c, osx_image: xcode9.2, env: 'DEPMGT=Carthage PLATFORM=tvOS DESTINATION="platform=tvOS Simulator,name=Apple TV"' }
# - { os: osx, language: objective-c, osx_image: xcode9.2, env: 'DEPMGT=SwiftPM' }
# - { os: linux, dist: trusty, sudo: required, language: generic, env: 'DEPMGT=SwiftPM SWIFT_VERSION=4.0'}
before_install:
- case $DEPMGT in
Carthage)
brew update;
brew outdated carthage || brew upgrade carthage;
brew tap yonaskolb/Beak https://github.com/yonaskolb/Beak.git;
brew install mint Beak;;
SwiftPM)
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
fi;
swift package update;;
*)
;;
esac;
script:
- case $DEPMGT in
Carthage)
mint run yonaskolb/beak@master beak run build_carthage_dependencies --platform .$PLATFORM;
mint run yonaskolb/beak@master beak run xcode_build --platform .$PLATFORM;
mint run yonaskolb/beak@master beak run xcode_test --platform .$PLATFORM;;
SwiftPM)
swift test;;
*)
;;
esac;
after_success:
- case $DEPMGT in
Carthage)
bash <(curl -s https://codecov.io/bash);;
*)
;;
esac;
notifications:
email: true