forked from plasma-umass/coz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 924 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
42
# Build on Ubuntu 18.04
dist: bionic
# Specify language
language: cpp
# Build with both clang and gcc
compiler:
- clang
- g++
# Build all branches except gh-pages
branches:
except:
- gh-pages
# Install dependencies
before_install:
- sudo apt-get update
- sudo apt-get install -y --install-recommends build-essential cmake ninja-build docutils-common nodejs npm
- sudo pip install conan
# Make and install
install:
- mkdir build && cd build
- conan install .. -s compiler.libcxx=libstdc++11 -s compiler.cppstd=11 --build=outdated
- cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_BENCHMARKS=ON -G Ninja
- ninja
- sudo ninja install
# Run tests
script:
- CTEST_OUTPUT_ON_FAILURE=1 ninja test
# Test the Rust support as well
matrix:
include:
- language: rust
rust: stable
before_install: true
install: true
script: cargo test --manifest-path rust/Cargo.toml