forked from vmware-archive/cascade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
86 lines (86 loc) · 3.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
sudo: false
dist: xenial
language: cpp
matrix:
fast_finish: true
include:
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- ccache
- cmake
- flex
- bison
- libncurses-dev
- g++-8
- os: linux
dist: xenial
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-7
packages:
- ccache
- cmake
- flex
- bison
- libncurses-dev
- clang-7
- os: linux
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-7
packages:
- ccache
- cmake
- flex
- bison
- libncurses-dev
- g++-8
- clang-7
sonarcloud:
organization: cascade
before_install:
- "pip install --user scan-build"
env:
- COVERAGE="1"
- os: osx
osx_image: xcode10.1
addons:
homebrew:
packages:
- ccache
- cmake
- flex
- bison
env:
- LDFLAGS="-L/usr/local/opt/flex/lib -L/usr/local/opt/bison/lib"
- CPPFLAGS="-I/usr/local/opt/flex/include"
- CXXFLAGS="-I/usr/local/opt/flex/include"
- CFLAGS="-I/usr/local/opt/flex/include"
before_install:
- export PATH=/usr/local/opt/bison/bin:/usr/local/opt/flex/bin:$PATH
install:
- "[ $COVERAGE = 1 ] && export CFLAGS=-coverage $CFLAGS && export CXXFLAGS=-coverage
$CXXFLAGS && export LDFLAGS=-coverage $LDFLAGS || true"
script:
- "[ $COVERAGE = 1 ] && build-wrapper-linux-x86-64 --out-dir bw-output make -j $(getconf _NPROCESSORS_ONLN) || make -j $(getconf _NPROCESSORS_ONLN)"
- "[ $COVERAGE = 1 ] && make test && gcov . || make test"
after_success:
- "[ $COVERAGE = 1 ] && bash <(curl -s https://codecov.io/bash) && sonar-scanner -Dsonar.projectKey=cascade
-Dsonar.organization=cascade -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output
-Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.exclusions=ext/**,src/verilog/parse/lex.yy.cc,src/verilog/parse/verilog.tab.hh,src/verilog/parse/verilog.tab.cc,src/verilog/parse/location.hh,src/verilog/parse/position.hh,,src/verilog/parse/stack.hh || true"
env:
global:
- secure: HCmvfaRvj3TmSB+KJA3zbIaLEBXKpv3ED4vnayNg93FTBaLtLw0W8XXk8Sa7pOU+u00rE+2tkC52nKdMikscJlcYZm3KBR2Zqh4Br/hnMVIeXCFs9LTrA6UZDBVs1AeXYYV1KwetcG03o5YZDYNvS8tRZs8Fwl7pZzlfms8wdFyqnG59MNY0znG6RC18eO/dFCu78f4urjYW9UrmEQzU5YyGFYhHH9SylXV5o8cL1+XHoIUlqhyYswZ/PgdBQTUGLvts5IeV+gsO1GD9ibxO5iAlJ4M9OpnFuAxWojKqNcA+GxoC3XH+6Uga09UV/5qXn6gkEnKtMJMoGTI8sWkYlJ8yp5XJqCJOCIfQ11yagp2e9pYogxLNfiC7OZ63q3CHnwNU3PRSJemhX9HwBvp2ZFa1NkQTmwk5tdLYCel0d8uGNqJgyNp7JpLMxA1Fo3yuvVDoRjB2RgT8SSH2CbSmMhsbqdaDtuOsW6JcV/GxnvqCj8KRM2HJNIkCZMY1lX8E0z/QnWcCWt3gKCQ6FzSsjUWZIXsvSPcgbUm7NMY6UXbPY4IkOQZ5+0cCM21s5NAozk8ln86pdjxRwlrpxjAn50jGgy29ZSxxaGvXKtdJ6NrUkZgtNC5AtVQE/NItEwF5KKvm9vqG9ug4IOldSjXEHExH8Z28hU1KhEV2K+JAjE0=
- secure: gfurwSBGbAB1DJDRXlNWzC0aWYq5GlxQ7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