.gitlab-ci.yml 480 Bytes
Newer Older
1
image: "ruby:2.3"
Milan's avatar
Milan committed
2 3

before_script:
4
  - export BUILD_TYPE=development
Milan's avatar
Milan committed
5 6
  - export BUNDLE_GEMFILE=$PWD/Gemfile
  - gem install bundler
7
  - bin/bundle install --deployment --without production --with mysql postgresql --jobs 3 --retry 3
8
  - bin/bundle clean
Milan's avatar
Milan committed
9 10
  - cp config/database.yml.example config/database.yml
  - sed -i 's/*common/*mysql/' config/database.yml
Milan's avatar
Milan committed
11 12

#ruby 2.3
13 14 15 16 17 18 19 20
rubocop:ruby2.3:
  image: ruby:2.3
  script:
    - bundle exec rubocop
  tags:
    - ruby
  except:
    - tags