Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.21 KiB
Newer Older
  • Learn to ignore specific revisions
  • # This file is generated by GitLab CI
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    before_script:
    
      - ./scripts/prepare_build.sh
    
    Valery Sizov's avatar
    Valery Sizov committed
      - ruby -v
      - which ruby
    
      - gem install bundler --no-ri --no-rdoc
    
    Valery Sizov's avatar
    Valery Sizov committed
      - cp config/gitlab.yml.example config/gitlab.yml
      - touch log/application.log
      - touch log/test.log
    
      - bundle install --without postgres production --jobs $(nproc)  "${FLAGS[@]}"
    
    Valery Sizov's avatar
    Valery Sizov committed
      - bundle exec rake db:create RAILS_ENV=test
    
    
    spec:feature:
      script:
        - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:feature
      tags:
        - ruby
        - mysql
    
    spec:api:
      script:
        - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:api
      tags:
        - ruby
        - mysql
    
    spec:other:
      script:
        - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:other
      tags:
        - ruby
        - mysql
    
    spinach:project:
    
      script:
    
        - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project
    
      tags:
        - ruby
        - mysql
    
    
      script:
    
        - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:other
    
      tags:
        - ruby
        - mysql
    
    
      script:
    
        - RAILS_ENV=test bundle exec teaspoon
    
      tags:
        - ruby
        - mysql
    
    
      script:
        - bundle exec rubocop
      tags:
        - ruby
        - mysql
    
    
      script:
        - bundle exec rake brakeman
      tags:
        - ruby