If the git repo contains a config.nims, temporarily move it, else it fails the
# building of koch.
travis:
calls `sh build_all.sh` to build nim
then calls: `nim c -r musl.nim example.nim` where `musl.nim` contains the samle logic as in `config.nims` but as a nim file
# After building nim, wipe csources to save on cache space.
rm -rf csources
rm -rf nim
mkdir -p nim
git clone --single-branch --branch devel --depth=1 "${NIMREPO}" "${NIMDIR}"
cd "${NIMDIR}" || exit
[ -d csources ] || git clone --depth 1 https://github.com/nim-lang/csources.git
cd csources
sh build.sh
cd ..
./bin/nim c koch
./koch boot -d:release
# After building nim, wipe csources to save on cache space.
rm -rf csources