forked from wickedmic/any
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (37 loc) · 965 Bytes
/
.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
language: generic
os: linux
dist: bionic
sudo: required
jobs:
include:
- name: clang-10
compiler: clang
addons:
apt:
sources: [ ubuntu-toolchain-r-test, llvm-toolchain-bionic-10 ]
packages: [ clang-10, g++-10 ]
env:
- CXX=clang++-10
- name: gcc-10
compiler: gcc
addons:
apt:
sources: [ ubuntu-toolchain-r-test ]
packages: [ g++-10 ]
env:
- CXX=g++-10
install:
- cmake_major="3.18"
- cmake_minor="4"
- cmake_filename="cmake-${cmake_major}.${cmake_minor}-Linux-x86_64.sh"
- tmp_dir="$(mktmp --dir)"
- wget -P "${tmp_dir}" "https://cmake.org/files/v${cmake_major}/${cmake_filename}"
- chmod +x "${tmp_dir}/${cmake_filename}"
- sudo "${tmp_dir}/${cmake_filename}" --prefix=/usr/local/ --exclude-subdir --skip-license
script:
- $CXX --version
- mkdir build
- cd build
- cmake -DEXTANY_BUILD_TESTS=On ..
- make
- make test