1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/bin/sh
set -ex
# change into root dir and setup path
cd $(dirname "$0")/..
PATH="$(pwd)/bin:$(pwd)/script:/usr/share/rbenv/shims:$PATH"
export RBENV_VERSION="2.1.2-github"
export CI_BUILD=1
# Write commit we're building at
git --no-pager log -n 1 || true
echo
git submodule update --init
(
cd vendor/libgit2
git fetch origin
git reset -q --hard origin/master
)
bundle install --path vendor/gems --binstubs
bundle exec rake clean
bundle exec rake compile
bundle exec rake test
|