Fix ruby-bundler and ruby-gems tests to not use bash

Don't assume that bash is available. Alpine does not ship bash by
default, so use the ligher /bin/sh instead.
This commit is contained in:
Natanael Copa 2016-01-04 22:41:01 +01:00
parent 4335f19ac3
commit a3849f49a1
4 changed files with 17 additions and 18 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -e
dir="$(mktemp -d)"
@ -9,6 +9,6 @@ cp Gemfile "$dir"
# make sure that running "bundle" twice doesn't change Gemfile.lock the second time
cd "$dir"
BUNDLE_FROZEN=0 bundle install
cp Gemfile.lock{,.orig}
cp Gemfile.lock Gemfile.lock.orig
BUNDLE_FROZEN=1 bundle install
diff -u Gemfile.lock{.orig,} >&2
diff -u Gemfile.lock.orig Gemfile.lock >&2

View File

@ -1 +1 @@
../run-bash-in-container.sh
../run-sh-in-container.sh

View File

@ -1,20 +1,19 @@
#!/bin/bash
#!/bin/sh
set -e
# list taken from https://rubygems.org/stats
gems=(
thor
rake
rails
rack
activesupport
activerecord
actionpack
json
actionmailer
for gem in \
thor \
rake \
rails \
rack \
activesupport \
activerecord \
actionpack \
json \
actionmailer \
activeresource
)
do
for gem in "${gems[@]}"; do
gem install "$gem"
done

View File

@ -1 +1 @@
../run-bash-in-container.sh
../run-sh-in-container.sh