Skip to content

Commit a50823d

Browse files
authored
getting closer to original config
1 parent 1135108 commit a50823d

File tree

1 file changed

+27
-42
lines changed

1 file changed

+27
-42
lines changed

.travis.yml

Lines changed: 27 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,45 @@
11
os:
2-
- osx
3-
- linux
2+
- osx
3+
- linux
44
osx_image: xcode9.4
5-
script: swift build
65
language: generic
76
sudo: required
87
dist: trusty
98

109
env:
1110
global:
1211
- SWIFT_VERSION=4.1.2
12+
matrix:
13+
- SWIFTPM_BUILD=true
14+
- SWIFTPM_TEST=true
15+
- XCODE_TEST_SDK=macosx
16+
- XCODE_BUILD_SDK=iphonesimulator
17+
- XCODE_BUILD_SDK=appletvsimulator
18+
- XCODE_BUILD_SDK=watchsimulator
1319

14-
install:
15-
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
16-
script:
17-
- swift build
18-
19-
# os:
20-
# - osx
21-
# - linux
22-
# osx_image: xcode9
23-
# language: generic
24-
# sudo: required
25-
# dist: trusty
26-
# env:
27-
# matrix:
28-
# - SWIFTPM_BUILD=true
29-
# - SWIFTPM_TEST=true
30-
# - XCODE_TEST_SDK=macosx
31-
# - XCODE_BUILD_SDK=iphonesimulator
32-
# - XCODE_BUILD_SDK=appletvsimulator
33-
# - XCODE_BUILD_SDK=watchsimulator
34-
35-
# matrix:
36-
# exclude:
20+
matrix:
21+
exclude:
3722
# # No need to build and test on macOS
3823
# - os: osx
3924
# env: SWIFTPM_BUILD=true
4025
# # LinuxMain.swift is out of sync
4126
# - os: linux
4227
# env: SWIFTPM_TEST=true
43-
# - os: linux
44-
# env: XCODE_TEST_SDK=macosx
45-
# - os: linux
46-
# env: XCODE_BUILD_SDK=iphonesimulator
47-
# - os: linux
48-
# env: XCODE_BUILD_SDK=appletvsimulator
49-
# - os: linux
50-
# env: XCODE_BUILD_SDK=watchsimulator
28+
- os: linux
29+
env: XCODE_TEST_SDK=macosx
30+
- os: linux
31+
env: XCODE_BUILD_SDK=iphonesimulator
32+
- os: linux
33+
env: XCODE_BUILD_SDK=appletvsimulator
34+
- os: linux
35+
env: XCODE_BUILD_SDK=watchsimulator
5136

52-
# install:
53-
# - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
37+
install:
38+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
5439

55-
# script:
56-
# - if [ -n "$SWIFTPM_BUILD" ]; then swift build; fi
57-
# - if [ -n "$SWIFTPM_TEST" ]; then swift test; fi
58-
# - if [ -n "$XCODE_BUILD_SDK" ] || [ -n "$XCODE_TEST_SDK" ]; then swift package generate-xcodeproj; fi
59-
# - if [ -n "$XCODE_BUILD_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package build -sdk $XCODE_BUILD_SDK; fi
60-
# - if [ -n "$XCODE_TEST_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package test -sdk $XCODE_TEST_SDK; fi
40+
script:
41+
- if [ -n "$SWIFTPM_BUILD" ]; then swift build; fi
42+
- if [ -n "$SWIFTPM_TEST" ]; then swift test; fi
43+
- if [ -n "$XCODE_BUILD_SDK" ] || [ -n "$XCODE_TEST_SDK" ]; then swift package generate-xcodeproj; fi
44+
- if [ -n "$XCODE_BUILD_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package build -sdk $XCODE_BUILD_SDK; fi
45+
- if [ -n "$XCODE_TEST_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package test -sdk $XCODE_TEST_SDK; fi

0 commit comments

Comments
 (0)