Commit 23add51b authored by Jonston Chan's avatar Jonston Chan

Improve Ruby example

parent f7d08041
...@@ -80,14 +80,15 @@ so you have to pay extra attention to indentation. Always use spaces, not tabs. ...@@ -80,14 +80,15 @@ so you have to pay extra attention to indentation. Always use spaces, not tabs.
Below is an example for a Ruby on Rails project: Below is an example for a Ruby on Rails project:
```yaml ```yaml
image: "ruby:2.5" default:
image: ruby:2.5
before_script: before_script:
- sudo apt-get update -qq && sudo apt-get install -y -qq sqlite3 libsqlite3-dev nodejs - apt-get update
- ruby -v - apt-get install -y sqlite3 libsqlite3-dev nodejs
- which ruby - ruby -v
- gem install bundler --no-document - which ruby
- bundle install --jobs $(nproc) "${FLAGS[@]}" - gem install bundler --no-document
- bundle install --jobs $(nproc) "${FLAGS[@]}"
rspec: rspec:
script: script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment