Commit a118abe3 authored by Ondřej Surý's avatar Ondřej Surý

Merge branch 'gitlab-ci-arm64' into 'master'

Prepare .gitlab-ci.yml for arm builds

See merge request !150
parents 9f04390d f6f9d64d
......@@ -4,7 +4,7 @@ variables:
DEBIAN_FRONTEND: noninteractive
LC_ALL: C.UTF-8
build_job:
amd64_build:
stage: build
script:
- make -k all
......@@ -13,7 +13,7 @@ build_job:
- linux
- amd64
test_job:
amd64_test:
stage: test
script:
- make -k check
......@@ -22,7 +22,7 @@ test_job:
- linux
- amd64
deckard_job:
deckard:
stage: test
before_script:
- git submodule update --init --recursive
......@@ -34,3 +34,23 @@ deckard_job:
- docker
- linux
- amd64
#arm_build:
# image: cznic/armhf-ubuntu:16.04
# stage: build
# script:
# - make -k all
# tags:
# - docker
# - linux
# - arm
#arm_test:
# image: armv7/armhf-ubuntu:16.04
# stage: test
# script:
# - make -k check
# tags:
# - docker
# - linux
# - arm
language: c
os:
- linux
- osx
compiler:
- gcc
- clang
notifications:
email:
on_success: change
on_failure: change
slack:
rooms: cznic:xNJmvHU2xu2aGtN7Y2eqHKoD
on_success: change
on_failure: change
webhooks:
urls: https://webhooks.gitter.im/e/66485d8f591942052faa
on_success: always
on_failure: always
matrix:
fast_finish: true
exclude:
- os: linux
compiler: clang
- os: osx
compiler: gcc
env:
global:
- PKG_CONFIG_PATH="${HOME}/.local/lib/pkgconfig"
- PATH="${HOME}/.local/bin:/usr/local/bin:${PATH}"
- LD_LIBRARY_PATH="${HOME}/.local/lib"
- DYLD_LIBRARY_PATH="${HOME}/.local/lib"
- MALLOC_CHECK_=3
- MALLOC_PERTURB_=223
before_script:
- echo $CFLAGS
- BOOTSTRAP_CLEANUP=1 ./scripts/bootstrap-depends.sh ${HOME}/.local
script:
- CFLAGS="-O2 -g -fno-omit-frame-pointer -DDEBUG" make -j2 install check V=1 COVERAGE=1 PREFIX=${HOME}/.local DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
- ./daemon/kresd -h
- ./daemon/kresd -V
- echo "quit()" | ./daemon/kresd -a 127.0.0.1#53535 .
- CFLAGS="-O2 -g -fno-omit-frame-pointer -DDEBUG" make -j2 check-integration COVERAGE=1 PREFIX=${HOME}/.local DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
after_success:
- if test $TRAVIS_OS_NAME = linux; then coveralls -i lib -i daemon -x ".c" --gcov-options '\-lp'; fi
sudo: false
cache:
directories:
- ${HOME}/.local
- ${HOME}/.cache/pip
before_cache:
- rm -f ${HOME}/.local/sbin/kresd
- rm -f ${HOME}/.local/lib/libkres.*
- rm -rf ${HOME}/.local/include/libkres
- rm -rf ${HOME}/.local/lib/kdns_modules
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment