forked from willhbr/SwifterCSV
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
45 lines (38 loc) · 1.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
sudo: true
dist: trusty
language: c
compiler:
- clang
os:
# - linux
- osx
osx_image: xcode7.3
env:
- TOOLCHAIN="swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
sudo apt-get install -y clang-3.6 libicu-dev;
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100;
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://swift.org/builds/development/xcode/${TOOLCHAIN}/${TOOLCHAIN}-osx.pkg;
pkgutil --expand ${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-osx.pkg ${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-osx.unpkg;
cat ${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-osx.unpkg/${TOOLCHAIN}-osx-package.pkg/Payload | gunzip -dc |cpio -i;
export PATH=${TRAVIS_BUILD_DIR}/usr/bin:"${PATH}";
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://swift.org/builds/development/ubuntu1404/${TOOLCHAIN}/${TOOLCHAIN}-ubuntu14.04.tar.gz;
tar xzf ${TOOLCHAIN}-ubuntu14.04.tar.gz;
export PATH=${TRAVIS_BUILD_DIR}/${TOOLCHAIN}-ubuntu14.04/usr/bin:"${PATH}";
fi
script:
- swift --version
- swift build --version
- swift build
- swift test