Skip to content

Instantly share code, notes, and snippets.

@glowacki-dev
Created March 20, 2018 14:04
Show Gist options
  • Save glowacki-dev/d77c2209aab8afa6a722985b2befc380 to your computer and use it in GitHub Desktop.
Save glowacki-dev/d77c2209aab8afa6a722985b2befc380 to your computer and use it in GitHub Desktop.
Gitlab CI configuration using Container Registry and some awesome base setup
image: registry.your-gitlab-server.com/some-user/some-project:master
variables:
RAILS_ENV: test
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test-password
before_script:
- bundle install --without development production
rspec:
services:
- postgres:latest
script:
- bundle exec rake db:create db:schema:load
- bundle exec rspec
code_quality:
script:
- bundle exec pronto run -f gitlab -c origin/master
vulnerabilities:
script:
- bundle audit check --update
updates:
script:
- bundle outdated --strict
allow_failure: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment