-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
47 lines (41 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
language: cpp
matrix:
include:
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8']
packages: ['libedit-dev', 'gcc-8', 'g++-8', 'clang-8', 'llvm-8', 'llvm-8-dev']
env:
- CC=gcc-8
- CXX=g++-8
- os: linux
dist: xenial
compiler: clang
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-xenial-8']
packages: ['libedit-dev', 'libstdc++-8-dev', 'clang-8', 'llvm-8', 'llvm-8-dev']
env:
- CC=clang-8
- CXX=clang++-8
- os: windows
env:
- COOLANG_WIN_CMAKE_ARCHITECTURE_FLAG="-A Win32"
- COOLANG_WIN_LLVM_PACKAGE_URL="https://github.com/vovkos/llvm-package-windows/releases/download/llvm-8.0.0/llvm-8.0.0-windows-x86-msvc15-msvcrt.7z"
- os: windows
env:
- COOLANG_WIN_CMAKE_ARCHITECTURE_FLAG="-A x64"
- COOLANG_WIN_LLVM_PACKAGE_URL="https://github.com/vovkos/llvm-package-windows/releases/download/llvm-8.0.0/llvm-8.0.0-windows-amd64-msvc15-msvcrt.7z"
before_script:
- if [ $TRAVIS_OS_NAME = windows ]; then choco install llvm --version=8.0.1 --allow-downgrade; fi
- if [ $TRAVIS_OS_NAME = windows ]; then wget $COOLANG_WIN_LLVM_PACKAGE_URL -O llvm.7z; fi
- if [ $TRAVIS_OS_NAME = windows ]; then 7z x llvm.7z -y -o"C:\Program Files (x86)"; fi
script:
- mkdir build
- cd build
- cmake .. $COOLANG_WIN_CMAKE_ARCHITECTURE_FLAG
- cmake --build . --config Release
- ctest --verbose