-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (30 loc) · 949 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
git:
depth: 1
quiet: true
os: osx
osx_image: xcode10.1
addons:
homebrew:
packages:
- llvm
- cmake
update: true
env:
- PATH="/usr/local/opt/llvm/bin:${PATH}"
matrix:
include:
- language: c++
script:
- mkdir -p build && cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=. -DBUILD_INTEGRATION_TESTS=OFF -DBUILD_EXAMPLES=OFF
- make check install
- cmake .. -DBUILD_INTEGRATION_TESTS=ON -DBUILD_EXAMPLES=ON
- make c_test && ./test/c_test
- make graph_example && ./examples/graph/graph_example
- language: rust
script:
- mkdir -p build && cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=../test/install -DBUILD_INTEGRATION_TESTS=OFF -DBUILD_EXAMPLES=OFF
- make check install
- pushd ../test && install/bin/tyr path.tyr -bind-lang=rust -emit-llvm -out-dir=./rust -file-utils -base64 && popd
- pushd ../test/rust && cargo test