You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then SWIFT_DIR=tests ; fi
22
29
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir $SWIFT_DIR ; fi
23
-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/swift-3.0.2-release/ubuntu1404/swift-3.0.2-RELEASE/swift-3.0.2-RELEASE-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi
30
+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/swift-4.1.2-release/ubuntu1404/swift-4.1.2-RELEASE/swift-4.1.2-RELEASE-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi
24
31
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
25
32
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang ; fi
26
33
env:
27
-
- SWIFT_VERSION=swift-3.0.2-RELEASE
34
+
- SWIFT_VERSION=swift-4.1.2-RELEASE
28
35
script:
29
36
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu14.04/usr/bin:"${PATH}" ; fi
30
-
#Run Unit Tests
37
+
#Compile with SPM
31
38
- swift test
32
39
# Compile with Xcode
40
+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode ; fi
33
41
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild clean test -scheme TLVCoding-macOS ; fi
34
42
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild clean build -scheme TLVCoding-iOS ; fi
0 commit comments