forked from boostorg/ublas
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
90 lines (78 loc) · 2.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright 2018 Stefan Seefeld
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
language: cpp
dist: bionic
sudo: required
branches:
only:
- master
- develop
- doc
- ci
# env: specifies additional global variables to define per row in build matrix
env:
global:
- CLBLAS_PREFIX=${TRAVIS_BUILD_DIR}/CLBLAS/
- PATH=${CLBLAS_PREFIX}/bin:$PATH
- LD_LIBRARY_PATH=${CLBLAS_PREFIX}/lib:$LD_LIBRARY_PATH
matrix:
include:
- os: linux
env: TOOLSET=gcc COMPILER=g++-7 CXXSTD=11
- os: linux
env: TOOLSET=gcc COMPILER=g++-7 CXXSTD=17
- os: linux
env: TOOLSET=gcc COMPILER=g++-9 CXXSTD=2a
- os: linux
env: TOOLSET=clang COMPILER=clang++-7 CXXSTD=17
- os: linux
env: TOOLSET=clang COMPILER=clang++-10 CXXSTD=2a
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-7
- g++-9
- clang-7
- clang-10
- libopenblas-base
- rpm2cpio
- cpio
- clinfo
- opencl-headers
- ocl-icd-opencl-dev
before_install:
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then .ci/install-ocl-ubuntu.sh; fi
- .ci/install-clblas.sh
- cmake --version;
- ${CC} --version;
- ${CXX} --version;
install:
- cd ..
- git clone -b master --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init --jobs 8 tools/build
- git submodule update --init --jobs 8 libs/config
- git submodule update --init --jobs 8 tools/boostdep
- mkdir -p libs/numeric/
- cp -rp $TRAVIS_BUILD_DIR/. libs/numeric/ublas
- python tools/boostdep/depinst/depinst.py -I benchmarks numeric/ublas
- ./bootstrap.sh
- ./b2 -j 8 headers
- export BOOST_ROOT="`pwd`"
# use script: to execute build steps
script:
- |-
echo "using $TOOLSET : : $COMPILER ;" >> ~/user-config.jam;
echo "using clblas : : <include>${CLBLAS_PREFIX}/include <search>${CLBLAS_PREFIX}/lib ;" >> ~/user-config.jam;
cp $TRAVIS_BUILD_DIR/opencl.jam ~/
cp $TRAVIS_BUILD_DIR/clblas.jam ~/
- cd libs/numeric/ublas
- $BOOST_ROOT/b2 -j 8 test toolset=$TOOLSET cxxstd=$CXXSTD
notifications:
email:
on_success: always