forked from External/greenlight
master #1
5
Gemfile
5
Gemfile
|
@ -85,6 +85,9 @@ gem 'pluck_to_hash', '~> 1.0.2'
|
||||||
|
|
||||||
gem 'local_time', '~> 2.1.0'
|
gem 'local_time', '~> 2.1.0'
|
||||||
|
|
||||||
|
# Use a sqlite database in test and development.
|
||||||
|
gem 'sqlite3', '~> 1.3.6'
|
||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
# Use a postgres database in production.
|
# Use a postgres database in production.
|
||||||
gem 'pg', '~> 0.18'
|
gem 'pg', '~> 0.18'
|
||||||
|
@ -106,8 +109,6 @@ group :development, :test do
|
||||||
gem 'byebug', platform: :mri
|
gem 'byebug', platform: :mri
|
||||||
# Environment configuration.
|
# Environment configuration.
|
||||||
gem 'dotenv-rails'
|
gem 'dotenv-rails'
|
||||||
# Use a sqlite database in test and development.
|
|
||||||
gem 'sqlite3', '~> 1.3.6'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
|
|
@ -55,13 +55,6 @@ if [ "$CD_REF_NAME" != "master" ] && [[ "$CD_REF_NAME" != *"release"* ]] && [[ "
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Include sqlite for production
|
|
||||||
sqliteCount="$(grep "gem 'sqlite3'" Gemfile | wc -l)"
|
|
||||||
|
|
||||||
if [ $sqliteCount -lt 2 ]; then
|
|
||||||
sed -i "/^group :production do/a\ \ gem 'sqlite3', '~> 1.3.6'" Gemfile
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set the version tag when it is a release or the commit sha was included.
|
# Set the version tag when it is a release or the commit sha was included.
|
||||||
if [[ "$CD_REF_NAME" == *"release"* ]]; then
|
if [[ "$CD_REF_NAME" == *"release"* ]]; then
|
||||||
export CD_VERSION_CODE=${CD_REF_NAME:8}
|
export CD_VERSION_CODE=${CD_REF_NAME:8}
|
||||||
|
|
Loading…
Reference in New Issue