forked from doom/strong_type
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
60 lines (57 loc) · 1.53 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
matrix:
include:
- os: linux
dist: xenial
language: python
cache: pip
python: 3.7
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-8', 'cmake']
env:
- CXX=g++-8
- CC=gcc-8
- CONAN_COMPILER_VERSION=8
- CONAN_LIBCXX_VERSION=libstdc++11
- PIP=pip
- os: linux
dist: xenial
language: python
cache: pip
python: 3.7
compiler: clang
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8']
packages: ['clang-8', 'g++-8', 'cmake']
env:
- CXX=clang++-8
- CC=clang-8
- CONAN_COMPILER_VERSION=8
- CONAN_LIBCXX_VERSION=libstdc++11
- PIP=pip
- os: osx
osx_image: xcode10.2
compiler: clang
env:
- CXX=clang++
- CC=clang
- PIP=pip3
script:
- ${CXX} --version
- cmake --version
- ${PIP} install conan
- conan profile new default --detect
- |
[ -n "${CONAN_COMPILER_VERSION}" ] && conan profile update settings.compiler.version=${CONAN_COMPILER_VERSION} default || true
- |
[ -n "${CONAN_LIBCXX_VERSION}" ] && conan profile update settings.compiler.libcxx=${CONAN_LIBCXX_VERSION} default || true
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- mkdir build
- cd build
- conan install .. --build missing
- cmake .. -DSTRONG_TYPE_BUILD_TESTS=ON
- make -kj2
- ./bin/strong_type-tests