2015-09-23 11:43:36 -04:00
|
|
|
# Based on https://github.com/ldionne/hana/blob/master/.travis.yml
|
|
|
|
|
|
|
|
language: cpp
|
|
|
|
sudo: false
|
2017-10-25 14:36:31 -04:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
|
|
|
# Use Linux unless specified otherwise
|
|
|
|
os: linux
|
2020-01-10 18:32:44 -05:00
|
|
|
dist: bionic
|
2015-09-23 11:43:36 -04:00
|
|
|
|
2016-09-28 01:02:49 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-10-25 14:36:31 -04:00
|
|
|
- ${TRAVIS_BUILD_DIR}/deps
|
2016-09-28 01:02:49 -04:00
|
|
|
|
2015-09-23 11:43:36 -04:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-10-25 14:36:31 -04:00
|
|
|
|
|
|
|
##########################################################################
|
2020-01-10 16:15:37 -05:00
|
|
|
# AppleClang on OSX
|
2017-10-25 14:36:31 -04:00
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
# XCode 8.3
|
2020-01-10 16:15:37 -05:00
|
|
|
- name: AppleClang Xcode-8.3 C++14 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2017-10-25 14:36:31 -04:00
|
|
|
os: osx
|
|
|
|
osx_image: xcode8.3
|
2020-01-10 16:15:37 -05:00
|
|
|
- name: AppleClang Xcode-8.3 C++14 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
os: osx
|
2017-10-25 14:36:31 -04:00
|
|
|
osx_image: xcode8.3
|
|
|
|
|
2020-01-10 17:24:07 -05:00
|
|
|
# XCode 9.0 earliest C++17 support
|
|
|
|
- name: AppleClang Xcode-9.0 C++17 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9 # AppleClang 9.1.0 same compiler in Xcode 9.0, 9.1 and 9.2
|
|
|
|
- name: AppleClang Xcode-9.0 C++17 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9
|
|
|
|
- name: AppleClang Xcode-9.0 C++14 Debug
|
2020-01-10 16:15:37 -05:00
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
2020-01-10 17:24:07 -05:00
|
|
|
osx_image: xcode9
|
|
|
|
- name: AppleClang Xcode-9.0 C++14 Release
|
2020-01-10 16:15:37 -05:00
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
os: osx
|
2020-01-10 17:24:07 -05:00
|
|
|
osx_image: xcode9
|
2017-10-25 14:36:31 -04:00
|
|
|
|
2020-01-10 16:15:37 -05:00
|
|
|
# XCode 9.4
|
|
|
|
- name: AppleClang Xcode-9.4 C++14 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2017-10-25 14:36:31 -04:00
|
|
|
os: osx
|
2020-01-10 16:15:37 -05:00
|
|
|
osx_image: xcode9.4 # AppleClang 9.1.0 same compiler as Xcode 9.3
|
|
|
|
- name: AppleClang Xcode-9.4 C++14 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9.4
|
2020-01-10 17:24:07 -05:00
|
|
|
- name: AppleClang Xcode-9.4 C++17 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9.4
|
|
|
|
- name: AppleClang Xcode-9.4 C++17 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode9.4
|
2020-01-10 16:15:37 -05:00
|
|
|
|
|
|
|
# XCode 10.1
|
|
|
|
- name: AppleClang Xcode-10.1 C++14 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.1 # AppleClang 10.0.0 same compiler as Xcode 10.0
|
|
|
|
- name: AppleClang Xcode-10.1 C++14 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.1
|
2020-01-10 17:24:07 -05:00
|
|
|
- name: AppleClang Xcode-10.1 C++17 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.1
|
|
|
|
- name: AppleClang Xcode-10.1 C++17 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.1
|
2020-01-10 16:15:37 -05:00
|
|
|
|
|
|
|
# XCode 10.3
|
|
|
|
- name: AppleClang Xcode-10.3 C++14 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.3 # AppleClang 10.0.1 same compiler as Xcode 10.2
|
|
|
|
- name: AppleClang Xcode-10.3 C++14 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.3
|
2020-01-10 17:24:07 -05:00
|
|
|
- name: AppleClang Xcode-10.3 C++17 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.3
|
|
|
|
- name: AppleClang Xcode-10.3 C++17 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.3
|
2020-01-10 16:15:37 -05:00
|
|
|
|
|
|
|
# XCode 11.3
|
|
|
|
- name: AppleClang Xcode-11.3 C++17 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode11.3 # AppleClang 11.0.0 linker update / same as Xcode 11.2
|
|
|
|
- name: AppleClang Xcode-11.3 C++17 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode11.3
|
|
|
|
- name: AppleClang Xcode-11.3 C++14 Debug
|
|
|
|
env: BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode11.3
|
|
|
|
- name: AppleClang Xcode-11.3 C++14 Release
|
|
|
|
env: BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode11.3
|
2017-10-25 14:36:31 -04:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Clang on Linux
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
# Clang 3.6
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.6 C++14 Debug
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=clang++-3.6 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2015-09-23 11:43:36 -04:00
|
|
|
addons: &clang36
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-3.6
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.6 C++14 Release
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=clang++-3.6 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2015-09-23 11:43:36 -04:00
|
|
|
addons: *clang36
|
2017-10-25 14:36:31 -04:00
|
|
|
|
|
|
|
# Clang 3.7
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.7 C++14 Debug
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=clang++-3.7 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
addons: &clang37
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-3.7
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.7 C++14 Release
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=clang++-3.7 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
addons: *clang37
|
2017-10-25 14:36:31 -04:00
|
|
|
|
|
|
|
# Clang 3.8
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.8 C++14 Debug
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=clang++-3.8 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
addons: &clang38
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-3.8
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.8 C++14 Release
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=clang++-3.8 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
addons: *clang38
|
2017-10-25 14:36:31 -04:00
|
|
|
|
|
|
|
# Clang 3.9
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.9 C++14 Debug
|
|
|
|
env: CXX=clang++-3.9 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2017-07-13 16:53:56 -04:00
|
|
|
addons: &clang39
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-3.9
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-3.9 C++14 Release
|
|
|
|
env: CXX=clang++-3.9 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2017-07-13 16:53:56 -04:00
|
|
|
addons: *clang39
|
2017-10-25 14:36:31 -04:00
|
|
|
|
|
|
|
# Clang 4.0
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-4.0 C++14 Debug
|
|
|
|
env: CXX=clang++-4.0 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2017-10-25 14:36:31 -04:00
|
|
|
addons: &clang40
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-4.0
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-4.0 C++14 Release
|
|
|
|
env: CXX=clang++-4.0 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2017-10-25 14:36:31 -04:00
|
|
|
addons: *clang40
|
|
|
|
|
|
|
|
# Clang 5.0
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-5.0 C++14 Debug
|
|
|
|
env: CXX=clang++-5.0 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2018-05-06 18:18:08 -04:00
|
|
|
addons: &clang50
|
2017-10-25 14:36:31 -04:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-5.0
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-5.0 C++14 Release
|
|
|
|
env: CXX=clang++-5.0 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2018-06-15 13:13:11 -04:00
|
|
|
addons: *clang50
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-5.0 C++17 Debug
|
|
|
|
env: CXX=clang++-5.0 BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
2018-06-15 14:42:16 -04:00
|
|
|
addons: *clang50
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang 5.0 C++17 Release
|
|
|
|
env: CXX=clang++-5.0 BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
2018-06-15 14:42:16 -04:00
|
|
|
addons: *clang50
|
|
|
|
|
2018-06-15 13:13:11 -04:00
|
|
|
# Clang 6.0
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-6.0 C++14 Debug
|
|
|
|
env: CXX=clang++-6.0 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2018-06-15 13:13:11 -04:00
|
|
|
addons: &clang60
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-6.0
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang 6.0 C++14 Release
|
|
|
|
env: CXX=clang++-6.0 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2018-06-15 13:13:11 -04:00
|
|
|
addons: *clang60
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang-6.0 C++17 Debug
|
|
|
|
env: CXX=clang++-6.0 BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
2018-06-15 14:42:16 -04:00
|
|
|
addons: *clang60
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: Clang 6.0 C++17 Release
|
|
|
|
env: CXX=clang++-6.0 BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
2018-06-15 14:42:16 -04:00
|
|
|
addons: *clang60
|
2017-10-25 14:36:31 -04:00
|
|
|
|
2020-01-10 18:32:44 -05:00
|
|
|
# Clang 7 (default on Xenial and Bionic images)
|
|
|
|
- name: Clang-7 C++14 Debug
|
|
|
|
env: CXX=clang++ BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
- name: Clang-7 C++14 Release
|
|
|
|
env: CXX=clang++ BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
- name: Clang-7 C++17 Debug
|
|
|
|
env: CXX=clang++ BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
- name: Clang-7 C++17 Release
|
|
|
|
env: CXX=clang++ BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
2019-01-16 22:58:38 -05:00
|
|
|
|
2020-01-10 18:48:14 -05:00
|
|
|
# Clang 8
|
|
|
|
- name: Clang-8 C++14 Debug
|
|
|
|
env: CXX=clang++-8 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
addons: &clang8
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main'
|
|
|
|
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
|
|
|
|
packages:
|
|
|
|
- clang-8
|
|
|
|
- name: Clang-8 C++14 Release
|
|
|
|
env: CXX=clang++-8 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
addons: *clang8
|
|
|
|
- name: Clang-8 C++17 Debug
|
|
|
|
env: CXX=clang++-8 BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
addons: *clang8
|
|
|
|
- name: Clang-8 C++17 Release
|
|
|
|
env: CXX=clang++-8 BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
addons: *clang8
|
|
|
|
|
|
|
|
# Clang 9
|
|
|
|
- name: Clang-9 C++14 Debug
|
|
|
|
env: CXX=clang++-9 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
addons: &clang9
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
|
|
|
|
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
|
|
|
|
packages:
|
|
|
|
- clang-9
|
|
|
|
- name: Clang-9 C++14 Release
|
|
|
|
env: CXX=clang++-9 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
addons: *clang9
|
|
|
|
- name: Clang-9 C++17 Debug
|
|
|
|
env: CXX=clang++-9 BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
addons: *clang9
|
|
|
|
- name: Clang-9 C++17 Release
|
|
|
|
env: CXX=clang++-9 BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
addons: *clang9
|
|
|
|
|
2017-10-25 14:36:31 -04:00
|
|
|
##########################################################################
|
|
|
|
# GCC on Linux
|
|
|
|
##########################################################################
|
|
|
|
|
2020-01-10 18:32:44 -05:00
|
|
|
# GCC 5 (default on the Xenial image)
|
|
|
|
- name: GCC-5 C++14 Debug
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=g++-5 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
- name: GCC-5 C++14 Release
|
|
|
|
dist: xenial
|
|
|
|
env: CXX=g++-5 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2017-10-25 14:36:31 -04:00
|
|
|
|
|
|
|
# GCC 6
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: GCC-6 C++14 Debug
|
|
|
|
env: CXX=g++-6 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
addons: &gcc6
|
|
|
|
apt:
|
|
|
|
packages: g++-6
|
2020-01-10 18:32:44 -05:00
|
|
|
- name: GCC-6 C++14 Release
|
|
|
|
env: CXX=g++-6 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
2016-09-28 01:02:49 -04:00
|
|
|
addons: *gcc6
|
2015-09-23 11:43:36 -04:00
|
|
|
|
2020-01-10 18:32:44 -05:00
|
|
|
# GCC 7 (default on the Bionic image)
|
|
|
|
- name: GCC-7 C++14 Debug
|
|
|
|
env: CXX=g++-7 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
- name: GCC-7 C++14 Release
|
|
|
|
env: CXX=g++-7 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
- name: GCC-7 C++17 Debug
|
|
|
|
env: CXX=g++-7 BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
- name: GCC-7 C++17 Release
|
|
|
|
env: CXX=g++-7 BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
2017-10-25 14:36:31 -04:00
|
|
|
|
2020-01-10 18:40:40 -05:00
|
|
|
# GCC 8
|
|
|
|
- name: GCC-8 C++14 Debug
|
|
|
|
env: CXX=g++-8 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
addons: &gcc8
|
|
|
|
apt:
|
|
|
|
packages: g++-8
|
|
|
|
- name: GCC-8 C++14 Release
|
|
|
|
env: CXX=g++-8 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
addons: *gcc8
|
|
|
|
- name: GCC-8 C++17 Debug
|
|
|
|
env: CXX=g++-8 BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
addons: *gcc8
|
|
|
|
- name: GCC-8 C++17 Release
|
|
|
|
env: CXX=g++-8 BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
addons: *gcc8
|
|
|
|
|
|
|
|
# GCC 9
|
|
|
|
- name: GCC-9 C++14 Debug
|
|
|
|
env: CXX=g++-9 BUILD_TYPE=Debug GSL_CXX_STANDARD=14
|
|
|
|
addons: &gcc9
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- sourceline: ppa:ubuntu-toolchain-r/test
|
|
|
|
packages:
|
|
|
|
- g++-9
|
|
|
|
- name: GCC-9 C++14 Release
|
|
|
|
env: CXX=g++-9 BUILD_TYPE=Release GSL_CXX_STANDARD=14
|
|
|
|
addons: *gcc9
|
|
|
|
- name: GCC-9 C++17 Debug
|
|
|
|
env: CXX=g++-9 BUILD_TYPE=Debug GSL_CXX_STANDARD=17
|
|
|
|
addons: *gcc9
|
|
|
|
- name: GCC-9 C++17 Release
|
|
|
|
env: CXX=g++-9 BUILD_TYPE=Release GSL_CXX_STANDARD=17
|
|
|
|
addons: *gcc9
|
|
|
|
|
2015-09-23 11:43:36 -04:00
|
|
|
install:
|
2017-10-25 14:36:31 -04:00
|
|
|
- ${CXX} --version
|
|
|
|
|
|
|
|
# Dependencies required by the CI are installed in ${TRAVIS_BUILD_DIR}/deps/
|
2015-09-23 11:43:36 -04:00
|
|
|
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
|
2017-10-25 14:36:31 -04:00
|
|
|
- mkdir -p "${DEPS_DIR}"
|
|
|
|
- cd "${DEPS_DIR}"
|
|
|
|
|
|
|
|
# Travis machines have 2 cores
|
|
|
|
- JOBS=2
|
2016-09-28 01:02:49 -04:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# [linux]: Install the right version of libc++
|
|
|
|
############################################################################
|
2015-09-23 11:43:36 -04:00
|
|
|
- |
|
2017-10-25 14:36:31 -04:00
|
|
|
LLVM_INSTALL=${DEPS_DIR}/llvm/install
|
|
|
|
# if in linux and compiler clang and llvm not installed
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${CXX%%+*}" == "clang" && -n "$(ls -A ${LLVM_INSTALL})" ]]; then
|
|
|
|
if [[ "${CXX}" == "clang++-3.6" ]]; then LLVM_VERSION="3.6.2";
|
|
|
|
elif [[ "${CXX}" == "clang++-3.7" ]]; then LLVM_VERSION="3.7.1";
|
|
|
|
elif [[ "${CXX}" == "clang++-3.8" ]]; then LLVM_VERSION="3.8.1";
|
|
|
|
elif [[ "${CXX}" == "clang++-3.9" ]]; then LLVM_VERSION="3.9.1";
|
|
|
|
fi
|
2015-09-23 11:43:36 -04:00
|
|
|
LLVM_URL="http://llvm.org/releases/${LLVM_VERSION}/llvm-${LLVM_VERSION}.src.tar.xz"
|
|
|
|
LIBCXX_URL="http://llvm.org/releases/${LLVM_VERSION}/libcxx-${LLVM_VERSION}.src.tar.xz"
|
|
|
|
LIBCXXABI_URL="http://llvm.org/releases/${LLVM_VERSION}/libcxxabi-${LLVM_VERSION}.src.tar.xz"
|
2017-10-25 14:36:31 -04:00
|
|
|
mkdir -p llvm llvm/build llvm/projects/libcxx llvm/projects/libcxxabi
|
|
|
|
travis_retry wget -O - ${LLVM_URL} | tar --strip-components=1 -xJ -C llvm
|
|
|
|
travis_retry wget -O - ${LIBCXX_URL} | tar --strip-components=1 -xJ -C llvm/projects/libcxx
|
|
|
|
travis_retry wget -O - ${LIBCXXABI_URL} | tar --strip-components=1 -xJ -C llvm/projects/libcxxabi
|
|
|
|
(cd llvm/build && cmake .. -DCMAKE_INSTALL_PREFIX=${LLVM_INSTALL})
|
|
|
|
(cd llvm/build/projects/libcxx && make install -j2)
|
|
|
|
(cd llvm/build/projects/libcxxabi && make install -j2)
|
|
|
|
export CXXFLAGS="-isystem ${LLVM_INSTALL}/include/c++/v1"
|
|
|
|
export LDFLAGS="-L ${LLVM_INSTALL}/lib -l c++ -l c++abi"
|
|
|
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LLVM_INSTALL}/lib"
|
2015-09-23 11:43:36 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
before_script:
|
2017-10-25 14:36:31 -04:00
|
|
|
# have CMake to generate build files
|
2016-09-28 01:02:49 -04:00
|
|
|
- cd "${TRAVIS_BUILD_DIR}"
|
2017-10-25 14:36:31 -04:00
|
|
|
- mkdir build && cd build
|
2018-06-15 13:13:11 -04:00
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DGSL_CXX_STANDARD=$GSL_CXX_STANDARD
|
2017-10-25 14:36:31 -04:00
|
|
|
|
2015-09-23 11:43:36 -04:00
|
|
|
script:
|
2017-10-25 14:36:31 -04:00
|
|
|
# build and run tests
|
|
|
|
- cmake --build . -- -j${JOBS}
|
|
|
|
- ctest --output-on-failure -j${JOBS}
|