Skip to content

Commit 662871d

Browse files
authored
see if stripping down the Travis config gets builds working on macOS at least
1 parent 884e032 commit 662871d

File tree

1 file changed

+45
-41
lines changed

1 file changed

+45
-41
lines changed

.travis.yml

Lines changed: 45 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
1-
os:
2-
- osx
3-
- linux
4-
osx_image: xcode9
5-
language: generic
6-
sudo: required
7-
dist: trusty
8-
env:
9-
global:
10-
- SWIFT_VERSION=4.0
11-
matrix:
12-
- SWIFTPM_BUILD=true
13-
- SWIFTPM_TEST=true
14-
- XCODE_TEST_SDK=macosx
15-
- XCODE_BUILD_SDK=iphonesimulator
16-
- XCODE_BUILD_SDK=appletvsimulator
17-
- XCODE_BUILD_SDK=watchsimulator
1+
os: osx
2+
osx_image: xcode9.4
3+
script: swift build
184

19-
matrix:
20-
exclude:
21-
# No need to build and test on macOS
22-
- os: osx
23-
env: SWIFTPM_BUILD=true
24-
# LinuxMain.swift is out of sync
25-
- os: linux
26-
env: SWIFTPM_TEST=true
27-
- os: linux
28-
env: XCODE_TEST_SDK=macosx
29-
- os: linux
30-
env: XCODE_BUILD_SDK=iphonesimulator
31-
- os: linux
32-
env: XCODE_BUILD_SDK=appletvsimulator
33-
- os: linux
34-
env: XCODE_BUILD_SDK=watchsimulator
5+
# os:
6+
# - osx
7+
# - linux
8+
# osx_image: xcode9
9+
# language: generic
10+
# sudo: required
11+
# dist: trusty
12+
# env:
13+
# global:
14+
# - SWIFT_VERSION=4.0
15+
# matrix:
16+
# - SWIFTPM_BUILD=true
17+
# - SWIFTPM_TEST=true
18+
# - XCODE_TEST_SDK=macosx
19+
# - XCODE_BUILD_SDK=iphonesimulator
20+
# - XCODE_BUILD_SDK=appletvsimulator
21+
# - XCODE_BUILD_SDK=watchsimulator
3522

36-
install:
37-
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
23+
# matrix:
24+
# exclude:
25+
# # No need to build and test on macOS
26+
# - os: osx
27+
# env: SWIFTPM_BUILD=true
28+
# # LinuxMain.swift is out of sync
29+
# - os: linux
30+
# env: SWIFTPM_TEST=true
31+
# - os: linux
32+
# env: XCODE_TEST_SDK=macosx
33+
# - os: linux
34+
# env: XCODE_BUILD_SDK=iphonesimulator
35+
# - os: linux
36+
# env: XCODE_BUILD_SDK=appletvsimulator
37+
# - os: linux
38+
# env: XCODE_BUILD_SDK=watchsimulator
3839

39-
script:
40-
- if [ -n "$SWIFTPM_BUILD" ]; then swift build; fi
41-
- if [ -n "$SWIFTPM_TEST" ]; then swift test; fi
42-
- if [ -n "$XCODE_BUILD_SDK" ] || [ -n "$XCODE_TEST_SDK" ]; then swift package generate-xcodeproj; fi
43-
- if [ -n "$XCODE_BUILD_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package build -sdk $XCODE_BUILD_SDK; fi
44-
- if [ -n "$XCODE_TEST_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package test -sdk $XCODE_TEST_SDK; fi
40+
# install:
41+
# - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
42+
43+
# script:
44+
# - if [ -n "$SWIFTPM_BUILD" ]; then swift build; fi
45+
# - if [ -n "$SWIFTPM_TEST" ]; then swift test; fi
46+
# - if [ -n "$XCODE_BUILD_SDK" ] || [ -n "$XCODE_TEST_SDK" ]; then swift package generate-xcodeproj; fi
47+
# - if [ -n "$XCODE_BUILD_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package build -sdk $XCODE_BUILD_SDK; fi
48+
# - if [ -n "$XCODE_TEST_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package test -sdk $XCODE_TEST_SDK; fi

0 commit comments

Comments
 (0)