forked from CESNET/libyang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (100 loc) · 2.53 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: c
cache:
pip: true
matrix:
include:
- arch: amd64
os: linux
dist: bionic
sudo: required
compiler: clang
env: TRAVIS_ARCH="amd64"
- arch: amd64
os: linux
dist: bionic
sudo: required
compiler: gcc
env: TRAVIS_ARCH="amd64" DEPLOY_BUILD=TRUE
- arch: arm64
os: linux
dist: bionic
sudo: required
compiler: gcc
env: TRAVIS_ARCH="arm64"
- arch: amd64
os: linux
dist: bionic
sudo: required
compiler: gcc
env: TRAVIS_ARCH="amd64" ENABLE_STATIC=ON
- arch: amd64
os: osx
compiler: gcc
env: TRAVIS_ARCH="amd64"
- arch: ppc64le
os: linux
dist: bionic
sudo: required
compiler: gcc
env: TRAVIS_ARCH="ppc64le"
- arch: ppc64le
os: linux
dist: bionic
sudo: required
compiler: clang
env: TRAVIS_ARCH="ppc64le"
allow_failures:
- os: osx
branches:
only:
- master
- devel
addons:
apt:
packages:
- abi-dumper
- abi-compliance-checker
- pkg-config
- w3m
- curl
- valgrind
- libcmocka-dev
- libpcre3-dev
- python3-dev
- python3-cffi
- python3-setuptools
- python3-pip
- swig
update: true
homebrew:
packages:
- curl
- cmocka
update: true
before_install:
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then sudo snap install universal-ctags; fi
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then pip3 install --user codecov==2.0.22; export CFLAGS="-coverage"; fi
script:
- mkdir build && cd build
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake -DENABLE_VALGRIND_TESTS=OFF ..; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_ARCH" = "amd64" ]; then cmake -DGEN_LANGUAGE_BINDINGS=ON -DENABLE_STATIC=${ENABLE_STATIC:-OFF} ..; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_ARCH" = "arm64" ]; then cmake -DGEN_LANGUAGE_BINDINGS=ON -DENABLE_VALGRIND_TESTS=OFF ..; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_ARCH" = "ppc64le" ]; then cmake -DGEN_LANGUAGE_BINDINGS=ON -DENABLE_VALGRIND_TESTS=OFF ..; fi
- make -j2 && ctest --output-on-failure
- cd -
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then ./tools/abi-check.sh; fi
deploy:
- provider: script
script: ./tools/codecov.sh
skip_cleanup: true
verbose: true
on:
branch: master
condition: $DEPLOY_BUILD = TRUE
- provider: script
script: ./packages/create-package.sh
skip_cleanup: true
verbose: true
on:
branch: master
condition: $DEPLOY_BUILD = TRUE