-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
40 lines (35 loc) · 827 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
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && GCOV=gcov-7"
- os: osx
osx_image: xcode10.2
env:
- MATRIX_EVAL="GCOV=gcov"
before_install:
- eval "${MATRIX_EVAL}"
script:
- mkdir build
- cd build
- cmake -DCOVERAGE=1 -DVERILOGAST_BUILD_TESTS=ON ..
- cmake --build .
- ctest
# Check that installation works
- sudo make install
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
test -f /usr/local/lib/libverilogAST.dylib
else
test -f /usr/local/lib/libverilogAST.so
fi
- test -f /usr/local/include/verilogAST.hpp
after_success:
- bash <(curl -s https://codecov.io/bash)