Skip to content

Instantly share code, notes, and snippets.

@vknabel
Last active January 10, 2017 11:40
Show Gist options
  • Save vknabel/4a280f2e4e342a26721a1333b2b0dcad to your computer and use it in GitHub Desktop.
Save vknabel/4a280f2e4e342a26721a1333b2b0dcad to your computer and use it in GitHub Desktop.
Installs rock for CI usage
#!/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