Switch the Linux Swift tests to Trusty and Swift 4.0.
This uses Travis's new(ish) Ubuntu Trusty image, and changes the version number of the Swift binaries that we download. We now install clang-3.6. This is not the default on Trusty, but it's required by the Swift 4.0 toolchain. This also removes the lines to upgrade libicu-dev and sqlite3. These are sufficiently up-to-date in the Trusty image.
This commit is contained in:
parent
cfb0041328
commit
897b4339a3
|
@ -108,6 +108,7 @@ matrix:
|
||||||
- GROUP=RECURSION
|
- GROUP=RECURSION
|
||||||
stage: main-test
|
stage: main-test
|
||||||
- os: linux
|
- os: linux
|
||||||
|
dist: trusty
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env:
|
env:
|
||||||
- TARGET=swift
|
- TARGET=swift
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
set -euo pipefail
|
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
|
# install dependencies
|
||||||
# some packages below will be update, swift assumes newer versions
|
# some packages below will be update, swift assumes newer versions
|
||||||
# of, for example, sqlite3 and libicu, without the update some
|
# of, for example, sqlite3 and libicu, without the update some
|
||||||
# tools will not work
|
# tools will not work
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install clang libicu-dev libxml2 sqlite3
|
sudo apt-get install clang-3.6 libxml2
|
||||||
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
|
||||||
|
|
||||||
# This would fix a know linker issue mentioned in:
|
# This would fix a know linker issue mentioned in:
|
||||||
# https://bugs.swift.org/browse/SR-2299
|
# https://bugs.swift.org/browse/SR-2299
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# here since environment variables doesn't pass
|
# here since environment variables doesn't pass
|
||||||
# across scripts
|
# across scripts
|
||||||
if [ $TRAVIS_OS_NAME == "linux" ]; then
|
if [ $TRAVIS_OS_NAME == "linux" ]; then
|
||||||
export SWIFT_VERSION=swift-3.1.1
|
export SWIFT_VERSION=swift-4.0
|
||||||
export SWIFT_HOME=$(pwd)/swift/$SWIFT_VERSION-RELEASE-ubuntu14.04/usr/bin/
|
export SWIFT_HOME=$(pwd)/swift/$SWIFT_VERSION-RELEASE-ubuntu14.04/usr/bin/
|
||||||
export PATH=$SWIFT_HOME:$PATH
|
export PATH=$SWIFT_HOME:$PATH
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue