123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- language: c
- cache:
- ccache: true
- compiler:
- - gcc
- - clang
- os:
- - linux
- - osx
- env:
- global:
-
- - MAKEFLAGS="-j 2"
-
-
- - HARDENING_OPTIONS="--enable-expensive-hardening"
-
- - ASCIIDOC_OPTIONS="--disable-asciidoc"
- matrix:
-
-
-
-
- -
- matrix:
-
- include:
-
- - env: COVERAGE_OPTIONS="--enable-coverage" HARDENING_OPTIONS=""
-
-
-
-
-
- - env: DISTCHECK="yes" ASCIIDOC_OPTIONS=""
-
-
-
-
-
-
-
-
-
-
- exclude:
-
- - compiler: clang
- sudo: false
-
- - compiler: gcc
- sudo: required
-
- - compiler: gcc
- os: osx
-
-
- - compiler: gcc
- os: linux
- env:
- sudo:
- - false
- - required
- dist: trusty
- addons:
-
- apt:
- packages:
-
- - libevent-dev
-
-
- - zlib1g-dev
-
- - libcap-dev
- - libscrypt-dev
- - libseccomp-dev
-
-
- - asciidoc
- - docbook-xsl
- - docbook-xml
- - xmlto
-
- homebrew:
- packages:
-
- - libevent
-
- - openssl
-
-
-
-
- - libscrypt
-
-
- - pkg-config
-
- - ccache
-
-
- - asciidoc
- - xmlto
- install:
-
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
-
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then OPENSSL_OPTIONS=--with-openssl-dir=`brew --prefix openssl`; fi
-
-
- - if [[ "$COVERAGE_OPTIONS" != "" ]]; then pip install --user cpp-coveralls; fi
-
- - if [[ "$ASCIIDOC_OPTIONS" == "" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"; fi
-
-
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then dpkg-query --show; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list --versions; fi
- script:
- - ./autogen.sh
- - CONFIGURE_FLAGS="$ASCIIDOC_OPTIONS $COVERAGE_OPTIONS $HARDENING_OPTIONS $OPENSSL_OPTIONS --enable-fatal-warnings --disable-silent-rules"
- - echo "Configure flags are $CONFIGURE_FLAGS"
- - ./configure $CONFIGURE_FLAGS
-
- - if [[ "$DISTCHECK" == "" ]]; then make check; fi
- - if [[ "$DISTCHECK" != "" ]]; then make distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS"; fi
-
- - if [[ "$COVERAGE_OPTIONS" != "" ]]; then coveralls -b . --exclude src/test --exclude src/trunnel --gcov-options '\-p' || echo "Coverage failed"; fi
- after_failure:
-
-
- - tail -1000 config.log || echo "tail failed"
-
- - if [[ "$DISTCHECK" == "" ]]; then cat test-suite.log || echo "cat failed"; fi
-
- - if [[ "$DISTCHECK" != "" ]]; then make show-distdir-testlog || echo "make failed"; fi
- before_cache:
-
- - if [[ "$COVERAGE_OPTIONS" != "" ]]; then make reset-gcov; fi
- notifications:
- irc:
- channels:
- - "irc.oftc.net#tor-ci"
- template:
- - "%{repository} %{branch} %{commit} - %{author}: %{commit_subject}"
- - "Build #%{build_number} %{result}. Details: %{build_url}"
- on_success: change
- on_failure: change
- email:
- on_success: never
- on_failure: change
|