.gitlab-ci.yml 2.13 KB
Newer Older
Valery Sizov's avatar
Valery Sizov committed
1
# This file is generated by GitLab CI
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2
before_script:
3
  - ./scripts/prepare_build.sh
Valery Sizov's avatar
Valery Sizov committed
4 5
  - ruby -v
  - which ruby
6
  - gem install bundler --no-ri --no-rdoc
Valery Sizov's avatar
Valery Sizov committed
7 8 9
  - cp config/gitlab.yml.example config/gitlab.yml
  - touch log/application.log
  - touch log/test.log
10
  - bundle install --without postgres production --jobs $(nproc)  "${FLAGS[@]}"
11
  - bundle exec rake db:reset db:create RAILS_ENV=test
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

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

Douwe Maan's avatar
Douwe Maan committed
27 28 29 30 31 32 33
spec:models:
  script:
    - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:models
  tags:
    - ruby
    - mysql

Douwe Maan's avatar
Douwe Maan committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47
spec:lib:
  script:
    - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:lib
  tags:
    - ruby
    - mysql

spec:services:
  script:
    - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:services
  tags:
    - ruby
    - mysql

48 49 50 51 52 53
spec:benchmark:
  script:
    - RAILS_ENV=test bundle exec rake spec:benchmark
  tags:
    - ruby
    - mysql
54
  allow_failure: true
55

56 57 58 59 60 61 62
spec:other:
  script:
    - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:other
  tags:
    - ruby
    - mysql

Douwe Maan's avatar
Douwe Maan committed
63
spinach:project:half:
Valery Sizov's avatar
Valery Sizov committed
64
  script:
Douwe Maan's avatar
Douwe Maan committed
65 66 67 68 69 70
    - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:half
  tags:
    - ruby
    - mysql

spinach:project:rest:
Valery Sizov's avatar
Valery Sizov committed
71
  script:
Douwe Maan's avatar
Douwe Maan committed
72
    - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:rest
Valery Sizov's avatar
Valery Sizov committed
73 74 75 76
  tags:
    - ruby
    - mysql

77
spinach:other:
Valery Sizov's avatar
Valery Sizov committed
78
  script:
79
    - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:other
Valery Sizov's avatar
Valery Sizov committed
80 81 82 83
  tags:
    - ruby
    - mysql

84
teaspoon:
Valery Sizov's avatar
Valery Sizov committed
85
  script:
86
    - RAILS_ENV=test bundle exec teaspoon
Valery Sizov's avatar
Valery Sizov committed
87 88 89 90
  tags:
    - ruby
    - mysql

91
rubocop:
Valery Sizov's avatar
Valery Sizov committed
92 93 94 95 96 97
  script:
    - bundle exec rubocop
  tags:
    - ruby
    - mysql

98
brakeman:
Valery Sizov's avatar
Valery Sizov committed
99 100 101 102
  script:
    - bundle exec rake brakeman
  tags:
    - ruby
103
    - mysql
104 105 106 107 108 109 110

flog:
  script:
    - bundle exec rake flog
  tags:
    - ruby
    - mysql
111 112 113 114 115 116 117

flay:
  script:
    - bundle exec rake flay
  tags:
    - ruby
    - mysql
118

119
bundler:audit:
120
  script:
121 122
    - "bundle exec bundle-audit update"
    - "bundle exec bundle-audit check"
123 124 125
  tags:
    - ruby
    - mysql