forked from Nero5023/CSVParser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (50 loc) · 1.71 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
46
47
48
49
50
51
52
53
54
55
56
57
58
branches:
only:
- master
- develop
sudo: required
dist: trusty
compiler:
- clang
# language: objective-c
os:
- linux
- osx
osx_image: xcode8
xcode_project: CSVParser.xcodeproj
xcode_scheme: CSVParser
env:
global:
- TOOLCHAIN="swift-3.0-RELEASE"
- FRAMEWORK_NAME="CSVParser"
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
brew outdated carthage || brew upgrade carthage;
fi
# wget https://swift.org/builds/swift-3.0-release/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}";
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://swift.org/builds/swift-3.0-release/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:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
swift build;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
carthage build --no-skip-current;
carthage archive $FRAMEWORK_NAME;
fi