Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
add .gitlab-ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vsizov committed Jun 3, 2015
1 parent a2921bd commit 0aded8f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .gitlab-ci.yml
@@ -0,0 +1,32 @@
jobs:
- script: |
export PATH=~/bin:/usr/local/bin:/usr/bin:/bin
ruby -v
gem install bundler
cp config/database.yml.mysql config/database.yml
cp config/application.yml.example config/application.yml
! 'sed "s/username\:.*$/username\: runner/" -i config/database.yml'
! 'sed "s/password\:.*$/password\: ''password''/" -i config/database.yml'
bundle --without postgres
RAILS_ENV=test bundle exec rake db:setup
SIMPLECOV=true RAILS_ENV=test bundle exec rake spec
name: Specs
branches: true
tags: false
runner:
- script: |
export PATH=~/bin:/usr/local/bin:/usr/bin:/bin
ruby -v
gem install bundler
cp config/database.yml.mysql config/database.yml
cp config/application.yml.example config/application.yml
! 'sed "s/username\:.*$/username\: runner/" -i config/database.yml'
! 'sed "s/password\:.*$/password\: ''password''/" -i config/database.yml'
bundle --without postgres
bundle exec rubocop
name: Rubocop
branches: true
tags: false
runner:
deploy_jobs: []
skip_refs: ''

0 comments on commit 0aded8f

Please sign in to comment.