u6a/.travis.yml

50 lines
1022 B
YAML
Raw Normal View History

2020-10-10 19:31:31 +00:00
#
# Copyright (C) 2020 CismonX <admin@cismon.net>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty, provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
#
2020-02-01 14:45:48 +00:00
language: c
os:
- linux
- osx
dist: bionic
compiler:
- gcc
- clang
2020-03-14 20:31:20 +00:00
addons:
apt:
2020-10-10 19:31:31 +00:00
update: true
2020-03-14 20:31:20 +00:00
packages:
- dejagnu
homebrew:
update: true
2020-03-14 20:31:20 +00:00
packages:
- dejagnu
2020-02-01 14:45:48 +00:00
branches:
only:
- master
2020-03-23 17:03:34 +00:00
before_script:
- export GCOV_BIN=`test $TRAVIS_COMPILER = clang && echo 'llvm-cov gcov' || echo gcov`
- test $TRAVIS_OS_NAME = osx && export PATH=$PATH:/Library/Developer/CommandLineTools/usr/bin || true
2020-02-01 14:45:48 +00:00
script:
- autoreconf --install
2020-10-10 19:31:31 +00:00
- ./configure CFLAGS='-O0 -g -Wall -Wextra -Wpedantic -coverage'
2020-02-01 14:45:48 +00:00
- make
- make check
2020-03-23 17:03:34 +00:00
- $GCOV_BIN src/*.c
2020-02-02 17:09:21 +00:00
- sudo make install
- command -v u6a u6ac
2020-03-23 15:58:02 +00:00
after_success:
2020-06-22 06:38:59 +00:00
- test $TRAVIS_OS_NAME = osx && true || bash <(curl -s https://codecov.io/bash)