-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (33 loc) · 1.21 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
osx_image: xcode9
xcode_workspace: Lagoon.xcworkspace
matrix:
include:
- xcode_scheme: Lagoon macOS
language: swift
env:
- XCODE_SDK=macosx10.13
- XCODE_ACTION="test"
- XCODE_DESTINATION="arch=x86_64"
- xcode_scheme: Lagoon iOS
language: swift
env:
- XCODE_SDK=iphonesimulator11.0
- XCODE_ACTION="test"
- XCODE_DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone SE"
install:
- if [[ `uname` == "Linux" ]] ; then
eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)";
fi
script:
- if [[ `uname` == "Linux" ]] ; then
swift test;
fi
- if [[ `uname` == "Darwin" ]] ; then
set -o pipefail;
xcodebuild -version;
xcodebuild -showsdks;
instruments -s devices;
travis_retry xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" -sdk "$XCODE_SDK" -destination "$XCODE_DESTINATION" -configuration Debug ENABLE_TESTABILITY=YES $XCODE_ACTION | xcpretty;
fi
after_success:
- sleep 5 # workaround https://github.com/travis-ci/travis-ci/issues/4725