-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
49 lines (49 loc) · 2.01 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
env:
global:
- LC_CTYPE=en_US.UTF-8
matrix:
include:
- os: osx
language: objective-c
osx_image: xcode10.2
before_install:
- brew update
- brew install llvm
- git clone https://github.com/llvm-swift/LLVMSwift.git
- swift LLVMSwift/utils/make-pkgconfig.swift
script:
- swiftlint
- swift build
- swift run lite
- swift test
- os: linux
language: generic
env:
- LLVM_API_VERSION=8
sudo: required
dist: trusty
before_install:
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:"${PKG_CONFIG_PATH}"
- wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-${LLVM_API_VERSION} main"
- sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
- sudo apt-get update
- sudo apt-get install -y llvm-${LLVM_API_VERSION} libc++1
- sudo cp /usr/lib/x86_64-linux-gnu/libc++.so.1.0 /usr/lib/
- sudo ln -sf /usr/lib/libc++.so.1.0 /usr/lib/libc++.so
- sudo rm -rf /usr/local/clang-*/bin/llvm-config
- ls -l /usr/bin/llvm-config*
- sudo rm -f /usr/bin/llvm-config
- sudo ln -s /usr/bin/llvm-config-${LLVM_API_VERSION} /usr/bin/llvm-config
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
- wget https://swift.org/builds/swift-4.2-release/ubuntu1404/swift-4.2-RELEASE/swift-4.2-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-4.2-RELEASE-ubuntu14.04.tar.gz
- export PATH=${PWD}/swift-4.2-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- git clone https://github.com/llvm-swift/LLVMSwift.git
- sudo ./swift-4.2-RELEASE-ubuntu14.04/usr/bin/swift LLVMSwift/utils/make-pkgconfig.swift
script:
# Install phase of Linux build is XFAIL'd until we have a snapshot of
# 5.1 that can build us.
#- swift build
#- swift run lite
#- swift test