From f9ddd78c7e4f90f715afe362b85ab9aa61784df3 Mon Sep 17 00:00:00 2001 From: Valentin Knabel Date: Fri, 30 Mar 2018 14:56:33 +0200 Subject: [PATCH] Travis (#3) * Initial Travis config to test building commands --- .travis.yml | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..02c7a91 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,88 @@ +language: generic +sudo: required +dist: trusty +notifications: + email: false +matrix: + include: + - os: osx + osx_image: xcode9.3beta # Actually released + script: + - make LIB_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib + + - os: osx + osx_image: xcode9.2 + script: + - make LIB_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib + + - os: osx + osx_image: xcode9.1 + script: + - make LIB_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib + + - os: osx + osx_image: xcode9 + script: + - make LIB_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib + + - os: osx + osx_image: xcode9 + env: + - SWIFT_VERSION=4.0.2 + install: + - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" + script: + - make LIB_DIR=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/lib + + - os: osx + osx_image: xcode9 + env: + - SWIFT_VERSION=4.0.3 + install: + - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" + script: + - make LIB_DIR=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/lib + + - os: linux + env: + - SWIFT_VERSION=4.0 + install: + - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" + - export LD_LIBRARY_PATH=/usr/lib:$SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib + - sudo ln -s $SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib/libsourcekitdInProc.so /usr/lib/sourcekitdInProc + - sudo ldconfig + script: + - swift build -Xlinker -l:sourcekitdInProc -c release + + - os: linux + env: + - SWIFT_VERSION=4.0.2 + install: + - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" + - export LD_LIBRARY_PATH=/usr/lib:$SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib + - sudo ln -s $SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib/libsourcekitdInProc.so /usr/lib/sourcekitdInProc + - sudo ldconfig + script: + - swift build -Xlinker -l:sourcekitdInProc -c release + + - os: linux + env: + - SWIFT_VERSION=4.0.3 + install: + - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" + - export LD_LIBRARY_PATH=/usr/lib:$SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib + - sudo ln -s $SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib/libsourcekitdInProc.so /usr/lib/sourcekitdInProc + - sudo ldconfig + script: + - swift build -Xlinker -l:sourcekitdInProc -c release + + - os: linux + env: + - SWIFT_VERSION=4.1 + install: + - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" + - export LD_LIBRARY_PATH=/usr/lib:$SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib + - sudo ln -s $SWIFTENV_ROOT/versions/$SWIFT_VERSION/usr/lib/libsourcekitdInProc.so /usr/lib/sourcekitdInProc + - sudo ldconfig + script: + - swift build -Xlinker -l:sourcekitdInProc -c release