forked from lepton-eda/lepton-eda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (52 loc) · 2.25 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
# Very basic Travis CI (http://travis-ci.org) control file that allows
# some basic Linux-based continuous integration testing (for free).
sudo: required
dist: xenial
language: c
env:
global:
# COVERITY_SCAN_TOKEN
- secure: "BIl7HDdWo2EpK63Nta2Sjy/V2rMYt4E5Jl+tWEkWR3be+s61oRg2DoIqdTTntvo8os8gq90Fb8WJJWZQ2806BfsNF+Z+DZqN59iNQOEB2aiA0BhggyOHnF+OoZZfgv7q4Eq0XOS7KLSrnCu18E0qQKxJSjnBrO9k1cLS3QnKDCA="
# Before setting up the source tree, install necessary development
# headers
before_install:
- sudo apt-get update
- sudo apt-get install -y libgtk2.0-dev autopoint libgettextpo-dev
libstroke0-dev guile-2.2-dev flex bison groff texinfo texlive-base
texlive-generic-recommended texlive-latex-base texlive-fonts-recommended
libgtkextra-dev
# Set up the source tree by running autotools
#
# The SCM_DEBUG_TYPING_STRICTNESS macro determines how C code that
# uses Guile Scheme values is compiled. For CI builds, set it to 2
# (maximum strictness) to catch any possible problems, even though
# it'll result in low performance.
#
# We have to set SCM_DEBUG_TYPING_STRICTNESS to 0 for Coverity Scan
# builds, because with a non-zero value libguile's macros generate
# code that Coverity correctly identifies as undefined behaviour in C.
# However, we can't detect whether this is a Coverity build during the
# "install" step because the $COVERITY_SCAN_BRANCH variable isn't set
# until _after_ the Coverity static analysis step runs.
install:
- ./autogen.sh
- ./configure --disable-update-xdg-database CFLAGS='-DSCM_DEBUG_TYPING_STRICTNESS=2'
# Compile lepton-eda and run its tests.
# Skip this if this is a Coverity analysis build.
script: |
if test "${COVERITY_SCAN_BRANCH}" != "1"; then
make -sj4 distcheck
fi
addons:
# In order to trigger static analysis with Coverity Scan, push to
# the "coverity_scan" branch. You should only usually scan the tip of
# "master".
coverity_scan:
project:
name: lepton-eda/lepton-eda
description: Build submitted via Travis CI
# FIXME[Issue #44] Replace this e-mail address once there's a
# mailing list or e-mail alias set up for Lepton developers
notification_email: vzhbanov@gmail.com
build_command: make CFLAGS='-DSCM_DEBUG_TYPING_STRICTNESS=0' V=1 all
branch_pattern: coverity_scan