summaryrefslogtreecommitdiff
path: root/.ci/ci-make.sh
blob: 1868203c044b73392f3dbbe33d934e4af941f858 (plain) (blame)
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
#!/bin/sh

set -e
. .ci/travis.sh

if [ "$1" = "release-ready" ] ; then
  exit 0
fi

travis_fold ninja ninja
if [ "$1" = "asan" ]; then
  docker exec --env EIO_MONITOR_POLL=1 --env ASAN_OPTIONS=abort_on_error=0 --env LSAN_OPTIONS=suppressions=/src/.ci/asan-ignore-leaks.supp $(cat $HOME/cid) ninja -C build
  exit $?
fi

if [ "$DISTRO" != "" ] ; then
  if [ "$1" = "coverity" ] ; then
    # Needed on 4.8 or newer Kernel to allow running cov tools
    docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) sh -c "cat /proc/cmdline || true"
    docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) sh -c "uname -a || true"
    docker exec --env EIO_MONITOR_POLL=1 --env PATH="/src/cov-analysis-linux64-2019.03/bin:$PATH" $(cat $HOME/cid) sh -c "cov-build --dir cov-int ninja -C build"
    docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) sh -c "tar caf efl-$(git rev-parse --short HEAD).xz cov-int"
#docker exec --env EIO_MONITOR_POLL=1 --env COVERITY_SCAN_TOKEN=$COVERITY_SCAN_TOKEN $(cat $HOME/cid) sh -c ".ci/coverity-upload.sh"
  else
    docker exec --env EIO_MONITOR_POLL=1 $(cat $HOME/cid) ninja -C build
  fi
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
  latest_brew_python3_bin="$(ls -1d /usr/local/Cellar/python/3.*/bin | sort -n | tail -n1)"
  export PATH="${latest_brew_python3_bin}${PATH:+:}${PATH}"
  export PATH="$(brew --prefix gettext)/bin:$PATH"
  ninja -C build
else
  ninja -C build
fi
travis_endfold ninja