File tree Expand file tree Collapse file tree 3 files changed +88
-0
lines changed
Expand file tree Collapse file tree 3 files changed +88
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [[ " $TRAVIS_OS_NAME " == " Linux" ]]; then
4+ sudo apt-get -q update
5+ sudo apt-get install -y wget \
6+ clang-3.8 libc6-dev make git libicu52 libicu-dev \
7+ git autoconf libtool pkg-config \
8+ libblocksruntime-dev \
9+ libkqueue-dev \
10+ libpthread-workqueue-dev \
11+ systemtap-sdt-dev \
12+ libbsd-dev libbsd0 libbsd0-dbg \
13+ curl libcurl4-openssl-dev \
14+ libssl-dev \
15+ libedit-dev \
16+ libpython2.7 \
17+ python2.7 python2.7-dev \
18+ libxml2
19+
20+ sudo update-alternatives --quiet --install /usr/bin/clang clang /usr/bin/clang-3.8 100
21+ sudo update-alternatives --quiet --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 100
22+ fi
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Install Swift
4+
5+ wget " ${SWIFT_SNAPSHOT_NAME} "
6+
7+ TARBALL=" ` ls swift-* .tar.gz` "
8+ echo " Tarball: $TARBALL "
9+
10+ TARPATH=" $PWD /$TARBALL "
11+
12+ cd $HOME # expand Swift tarball in $HOME
13+ tar zx --strip 1 --file=$TARPATH
14+ pwd
15+
16+ export PATH=" $PWD /usr/bin:$PATH "
17+ which swift
18+
19+ if [ ` which swift` ]; then
20+ echo " Installed Swift: ` which swift` "
21+ else
22+ echo " Failed to install Swift?"
23+ exit 42
24+ fi
25+ swift --version
26+
27+
28+ # Environment
29+
30+ TT_SWIFT_BINARY=` which swift`
31+
32+ echo " ${TT_SWIFT_BINARY} "
Original file line number Diff line number Diff line change 1+ language : generic
2+
3+ notifications :
4+ slack : nozeio:LIFY1Jtkx0FRcLq3u1WliHRZ
5+
6+ matrix :
7+ include :
8+ - os : Linux
9+ dist : trusty
10+ env : SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-4.0.3-release/ubuntu1404/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu14.04.tar.gz"
11+ sudo : required
12+ - os : Linux
13+ dist : trusty
14+ env : SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-4.1-release/ubuntu1404/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu14.04.tar.gz"
15+ sudo : required
16+ - os : osx
17+ osx_image : xcode9
18+ - os : osx
19+ osx_image : xcode9.3
20+
21+
22+ before_install :
23+ - ./.travis.d/before-install.sh
24+
25+ install :
26+ - ./.travis.d/install.sh
27+
28+ script :
29+ - export PATH="$HOME/usr/bin:$PATH"
30+ - export SWIFTENV_ROOT="$HOME/.swiftenv"
31+ - export PATH="${SWIFTENV_ROOT}/bin:${SWIFTENV_ROOT}/shims:$PATH"
32+ - swift build -c release
33+ - swift build -c debug
34+
You can’t perform that action at this time.
0 commit comments