Last active
May 21, 2020 14:17
-
-
Save disruptek/ffb60b2817a793250ece4be75df37348 to your computer and use it in GitHub Desktop.
another travis config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
export GITBIN=$HOME/bin | |
mkdir -p $GITBIN | |
export PATH=$HOME/Nim/bin:$HOME/nimph:$GITBIN:$PATH | |
if ! type -P git &> /dev/null; then | |
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then | |
export EXT=.exe | |
# Setup git outside "Program Files", space breaks cmake sh.exe | |
cd $GITBIN/.. | |
curl -L -s "https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/PortableGit-2.23.0-64-bit.7z.exe" -o portablegit.exe | |
7z x -y -bd portablegit.exe | |
cd - | |
fi | |
fi | |
if ! type -P nim 2>&/dev/null; then | |
git clone --depth 1 https://github.com/nim-lang/Nim | |
cd Nim | |
sh build_all.sh | |
cd .. | |
fi | |
if ! type -P nimph 2>&1 /dev/null; then | |
git clone --depth 1 https://github.com/disruptek/nimph | |
cd nimph | |
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then | |
./bootstrap.sh1 | |
else | |
./bootstrap-nonimble.sh | |
fi | |
cd .. | |
fi | |
if true; then | |
cd Nim | |
git fetch --all | |
git checkout $BRANCH | |
rm -rf csources | |
rm -f bin/nim* | |
sh build_all.sh | |
cd .. | |
fi | |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | |
# Work around https://github.com/nim-lang/Nim/issues/12337 fixed in 1.0+ | |
ulimit -n 8192 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment