Last active
January 10, 2017 11:40
-
-
Save vknabel/4a280f2e4e342a26721a1333b2b0dcad to your computer and use it in GitHub Desktop.
Installs rock for CI usage
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 ROCK_PATH="$HOME/.rock" # default | |
export PATH="$PATH:./.rock/bin:$ROCK_PATH/bin" | |
if [ -f "$ROCK_PATH/sources/rock" ]; then | |
cd $ROCK_PATH/sources/rock | |
git pull | |
else | |
git clone --depth 1 https://github.com/vknabel/rock $ROCK_PATH/sources/rock | |
cd $ROCK_PATH/sources/rock | |
fi | |
swift build | |
mkdir $ROCK_PATH/bin | |
cp $ROCK_PATH/sources/rock/.build/debug/rock $ROCK_PATH/bin | |
if [ -f "Rockfile" ]; then | |
rock install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment