forked from mittinatten/freesasa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (59 loc) · 2.08 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
language: c
git:
depth: 3
dist:
trusty
cache:
pip
branches:
only:
- master
- dev
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq check libjson-c-dev libxml2-dev libxml2-utils
matrix:
include:
## Coverage test
- compiler: gcc
env: ENABLE="--enable-check --enable-gcov --enable-json --enable-xml"
before_install:
- pip install --user cpp-coveralls
- sudo apt-get update -qq
- sudo apt-get install -qq check libjson-c-dev libxml2-dev libxml2-utils
after_success:
- coveralls --exclude tests --exclude src/lexer.l --exclude src/lexer.c --exclude src/parser.c --exclude src/parser.y --exclude src/example.c --exclude src/util.c --gcov-options '\-lp'
## Python bindings test w/o JSON and XML
## also checks if everything works when JSON-C and XML not present on machine
- compiler: gcc
env: ENABLE="--enable-python-bindings --disable-json --disable-xml"
before_install:
- pip install --user cython
- pip install --user biopython
- sudo apt-get update -qq
- sudo apt-get install -qq check
after_failure: cat bindings/check-python.log
## Python bindings test w JSON and XML
- compiler: gcc
env: ENABLE="--enable-python-bindings --enable-json --enable-xml"
before_install:
- pip install --user cython
- pip install --user biopython
- sudo apt-get update -qq
- sudo apt-get install -qq check libjson-c-dev libxml2-dev libxml2-utils
after_failure: cat bindings/check-python.log
## Test C library with clang
- compiler: clang
env: ENABLE="--enable-check"
## test that configuration works when JSON-C and XML are disabled (but present)
- compiler: clang
env: ENABLE="--enable-check --disable-json --disable-xml"
- compiler: gcc
env: ENABLE="--enable-check --disable-json --disable-xml"
before_script:
- autoreconf -i
- ./configure CFLAGS="-fPIC -O2" $ENABLE
script: make && make check
after_failure:
- cat tests/test-api.log
- cat tests/test-cli.log