move config/ci to script/ci, update rubygems before bundle install
This commit is contained in:
parent
a4b9ae4f8a
commit
ce0507f9eb
4 changed files with 16 additions and 8 deletions
|
|
@ -12,9 +12,9 @@ env:
|
||||||
- DB=postgres BUILD_TYPE=cucumber
|
- DB=postgres BUILD_TYPE=cucumber
|
||||||
- DB=mysql BUILD_TYPE=cucumber
|
- DB=mysql BUILD_TYPE=cucumber
|
||||||
|
|
||||||
before_install: gem install bundler --pre
|
before_install: "./script/ci/before_install.sh"
|
||||||
bundler_args: "--without development production heroku"
|
bundler_args: "--without development production heroku"
|
||||||
before_script: "./config/ci/before-travis.sh"
|
before_script: "./script/ci/before.sh"
|
||||||
script: "bundle exec rake travis"
|
script: "bundle exec rake travis"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,10 @@
|
||||||
# Ensure known RubyGems version
|
#!/bin/bash
|
||||||
if [ "$(gem --version)" != "1.8.12" ]; then
|
|
||||||
echo "RubyGems version is $(gem --version). Changing..."
|
|
||||||
rvm rubygems 1.8.12
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install firefox & Xvfb, in preparation for cucumber & jasmine
|
# Install firefox & Xvfb, in preparation for cucumber & jasmine
|
||||||
|
|
||||||
#echo "Installing Firefox and Xvfb"
|
#echo "Installing Firefox and Xvfb"
|
||||||
#sudo aptitude --quiet=2 --without-recommends --assume-yes install firefox xvfb
|
#sudo aptitude --quiet=2 --without-recommends --assume-yes install firefox xvfb
|
||||||
#sudo cp config/ci/xvfb /etc/init.d/xvfb
|
#sudo cp script/ci/xvfb /etc/init.d/xvfb
|
||||||
echo "Start Xvfb"
|
echo "Start Xvfb"
|
||||||
sh -e /etc/init.d/xvfb start
|
sh -e /etc/init.d/xvfb start
|
||||||
|
|
||||||
11
script/ci/before_install.sh
Executable file
11
script/ci/before_install.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Ensure known RubyGems version
|
||||||
|
if [ "$(gem --version)" != "1.8.12" ]; then
|
||||||
|
echo "RubyGems version is $(gem --version). Changing..."
|
||||||
|
rvm rubygems 1.8.12
|
||||||
|
echo "Changed RubyGems version to $(gem --version)."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Get latest bundler
|
||||||
|
gem install bundler --pre
|
||||||
0
config/ci/xvfb → script/ci/xvfb
Normal file → Executable file
0
config/ci/xvfb → script/ci/xvfb
Normal file → Executable file
Loading…
Reference in a new issue