summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 5f10abfafbf96be88f0c91eb4f491d41456e9b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
image: "ruby:2.2"

before_script:
  - export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  - apt-get update
  - apt-get install -y git-annex
  - gem install --bindir /usr/local/bin bundler
  - cp config.yml.example config.yml
  - bundle install

#ruby 2.2
rspec:
  script:
    - bundle exec rspec spec
  tags:
    - ruby
  except:
    - tags

rubocop:
  script: 
    - bundle exec rubocop
  tags:
    - ruby
  except:
    - tags

#ruby 2.1
rspec:ruby2.1:
  image: ruby:2.1
  script:
    - bundle exec rspec spec
  tags:
    - ruby
  except:
    - tags

rubocop:ruby2.1:
  image: ruby:2.1
  script:
    - bundle exec rubocop
  tags:
    - ruby
  except:
    - tags