Created
March 20, 2018 14:04
-
-
Save glowacki-dev/d77c2209aab8afa6a722985b2befc380 to your computer and use it in GitHub Desktop.
Gitlab CI configuration using Container Registry and some awesome base setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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