Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 46 lines (35 sloc) 0.76 kb
d6ae39f @rsutphin Configure CI build.
rsutphin authored
1 #!/bin/bash -xe
2
3 export NCS_NAVIGATOR_ENV=ci
4
8118357 @rsutphin Switch to bundler 1.1.rc.
rsutphin authored
5 BUNDLER_VERSION=1.1.rc
d6ae39f @rsutphin Configure CI build.
rsutphin authored
6 GEMSET=ncs_mdes_warehouse
7
8 if [ -z $CI_RUBY ]; then
9 echo "CI_RUBY must be set"
10 exit 1
11 fi
12
13 set +xe
14 echo "Initializing RVM"
15 source ~/.rvm/scripts/rvm
16 set -xe
17
18 # On the overnight build, reinstall all gems
19 if [ `date +%H` -lt 5 ]; then
20 set +xe
21 echo "Purging gemset to verify that all deps can still be installed"
22 rvm --force $CI_RUBY gemset delete $GEMSET
23 set -xe
24 fi
25
26 RVM_CONFIG="${CI_RUBY}@${GEMSET}"
27 set +xe
28 echo "Switching to ${RVM_CONFIG}"
29 rvm use $RVM_CONFIG
30 set -xe
31
32 which ruby
33 ruby -v
34
35 set +e
36 gem list -i bundler -v $BUNDLER_VERSION
37 if [ $? -ne 0 ]; then
38 set -e
39 gem install bundler -v $BUNDLER_VERSION
40 fi
41 set -e
42
43 bundle update
44
45 bundle exec rake ci:all --trace
Something went wrong with that request. Please try again.