Skip to content

Commit

Permalink
Fix travis build script for linux and swift 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardvalentini committed Apr 15, 2018
1 parent bb2c464 commit 3e6cc00
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,41 @@ matrix:
include:
- os: osx
language: objective-c
osx_image: xcode9.2
osx_image: xcode9.3
before_install:
- export PATH=/usr/local/opt/llvm/bin:"${PATH}"
- brew update
- brew install llvm
- sudo swift utils/make-pkgconfig.swift
script:
- swift test
- os: linux
language: generic
sudo: required
dist: trusty
env:
- LLVM_API_VERSION=6.0
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.1-release/ubuntu1404/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-4.1-RELEASE-ubuntu14.04.tar.gz
- export PATH=${PWD}/swift-4.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- sudo ./swift-4.1-RELEASE-ubuntu14.04/usr/bin/swift utils/make-pkgconfig.swift
script:
- git check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ZMWfUj3HBYCFYqtz7PGnZ3IflEVsPJW6tgSsoeB6egjzb8APP9mvhm8+zb1jQG1dqXLWErMjWqhlyPVPmHrxU2w/OLWLAJPY94GVmLnSuOw2pSz41spuEY80JcVVzoRbAOQWrwAujq2S3k93yvKpGq4eaT72Mt8g1CyZesByvzcLk99LEJSpqOIxUqXBd4RwHhay/sq8LllyyqY8ORsxEgwQluOAjEhATO/t/HUsu2ndn1k38U1c4HqXW7FDs1hffYEzZ/PGxciCS6Vt1bfST+iq34pzqpanENQCnX6mSR+D+M7mHlCWdsUihmxEcs5knuM=

0 comments on commit 3e6cc00

Please sign in to comment.