Skip to content

Commit

Permalink
Merge pull request #158 from Christine-horrocks/master
Browse files Browse the repository at this point in the history
Update Ruby and Bundler
  • Loading branch information
katylouise authored Jan 10, 2019
2 parents 3d725a7 + 0cde7f6 commit 94ebb36
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.3
2.6.0
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ env:
OPENSEARCH_DESCRIPTION_URL=http://api.parliament.uk/search/opensearch

before_install:
- gem update --system
- gem install bundler
- "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter"
- "chmod +x ./cc-test-reporter"

Expand All @@ -18,4 +20,4 @@ script:

after_script:
- "./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.json coverage/backend/.resultset.json"
- "if [[ \"$TRAVIS_TEST_RESULT\" == 0 ]]; then ./cc-test-reporter upload-coverage; fi"
- "if [[ \"$TRAVIS_TEST_RESULT\" == 0 ]]; then ./cc-test-reporter upload-coverage; fi"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.5.3-alpine3.8
FROM ruby:2.6.0-alpine3.8

# Add command line argument variables used to customise the image at build-time.

Expand Down Expand Up @@ -26,7 +26,7 @@ WORKDIR /app
RUN echo "Environment (RACK_ENV): $RACK_ENV" && \
apk --update add libcurl && \
apk --update add --virtual build-dependencies build-base ruby-dev && \
gem install bundler --no-ri --no-rdoc && \
gem install bundler --no-document && \
if [ "$RACK_ENV" == "production" ]; then \
bundle install --without development test --path vendor/bundle; \
apk del build-dependencies; \
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.3'
ruby '2.6.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.0'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ DEPENDENCIES
webmock

RUBY VERSION
ruby 2.5.3p105
ruby 2.6.0p0

BUNDLED WITH
2.0.1

0 comments on commit 94ebb36

Please sign in to comment.