2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/.ci/before_install.sh

18 lines
550 B
Bash
Raw Normal View History

2016-02-19 08:00:59 +00:00
#!/usr/bin/env bash
# don't do this for clang
if [ "$CXX" = "g++" ]; then
export CXX="g++-4.8" CC="gcc-4.8"
2016-02-19 08:00:59 +00:00
fi
# in case anything ignores the environment variables, override through PATH
mkdir bin
ln -s "$(which gcc-4.8)" bin/cc
ln -s "$(which gcc-4.8)" bin/gcc
2017-09-07 04:26:20 +00:00
ln -s "$(which c++)" bin/c++
ln -s "$(which g++-4.8)" bin/g++
# Travis only makes a shallow clone of --depth=50. KOReader is small enough that
# we can just grab it all. This is necessary to generate the version number,
# without which some tests will fail.
2017-09-07 04:26:20 +00:00
# git fetch --unshallow