Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1897 from hanjoes/travis-linux
Swift Target Linux Support
- Loading branch information
Showing
25 changed files
with
416 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set -euo pipefail | ||
|
||
# make sure we use trusty repositories (travis by default uses precise) | ||
curl https://repogen.simplylinux.ch/txt/trusty/sources_c4aa56bd26c0f54f391d8fae3e687ef5f6e97c26.txt | sudo tee /etc/apt/sources.list | ||
|
||
# install dependencies | ||
# some packages below will be update, swift assumes newer versions | ||
# of, for example, sqlite3 and libicu, without the update some | ||
# tools will not work | ||
sudo apt-get update | ||
sudo apt-get install clang libicu-dev libxml2 sqlite3 | ||
|
||
# This would fix a know linker issue mentioned in: | ||
# https://bugs.swift.org/browse/SR-2299 | ||
sudo ln -sf ld.gold /usr/bin/ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# only test swift as we develop on os x so likely well tested and its dog slow on travis | ||
# linux specific setup, those setup have to be | ||
# here since environment variables doesn't pass | ||
# across scripts | ||
if [ $TRAVIS_OS_NAME == "linux" ]; then | ||
export SWIFT_VERSION=swift-3.1.1 | ||
export SWIFT_HOME=$(pwd)/swift/$SWIFT_VERSION-RELEASE-ubuntu14.04/usr/bin/ | ||
export PATH=$SWIFT_HOME:$PATH | ||
|
||
# download swift | ||
mkdir swift | ||
curl https://swift.org/builds/$SWIFT_VERSION-release/ubuntu1404/$SWIFT_VERSION-RELEASE/$SWIFT_VERSION-RELEASE-ubuntu14.04.tar.gz -s | tar xz -C swift &> /dev/null | ||
fi | ||
|
||
# check swift | ||
swift --version | ||
swift build --version | ||
|
||
mvn -q -Dtest=swift.* test |
Oops, something went wrong.