summaryrefslogtreecommitdiff
path: root/.ci/ci-make-distcheck.sh
blob: 79342749cabd39f2067ebf41f157900996f66684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e
. .ci/travis.sh
if [ "$1" != "release-ready" ] ; then
  exit 0
fi
travis_fold distcheck "make distcheck"
if [ "$DISTRO" != "" ] ; then
  docker exec --env MAKEFLAGS="-j5" --env EIO_MONITOR_POLL=1 --env CC="ccache gcc" \
    --env CXX="ccache g++" \
    --env CFLAGS="-fdirectives-only" --env CXXFLAGS="-fdirectives-only" \
    $(cat $HOME/cid) make distcheck
else
  export PATH="/usr/local/opt/ccache/libexec:$(brew --prefix gettext)/bin:$PATH"
  make
fi
travis_endfold distcheck