cirandas.net

ref: master

./.gitlab-ci.yml


 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
image: noosfero/ci

before_script:
  - mkdir -p locale # makes quick-start skip compiling translations
  - ./script/set-apt-proxy
  - ./script/silent-quick-start
  - bundle exec rake db:migrate RAILS_ENV=test

stages:
  #FIXME Selenium tests are randomly failing and this avoid other tests to run.
  #- smoke-tests
  - all-tests

#smoke:
#  script: bundle exec rake ci:smoke
#  stage: smoke-tests

specs-models:
  script: bundle exec rake spec SPEC=spec/models
  stage: all-tests

api:
  script: bundle exec rake test:api
  stage: all-tests

units:
  script: bundle exec rake test:units
  stage: all-tests

functionals:
  script: bundle exec rake test:functionals
  stage: all-tests

integration:
  script: bundle exec rake test:integration
  stage: all-tests

cucumber-1:
  script: SLICE=1/2 bundle exec rake cucumber
  stage: all-tests
cucumber-2:
  script: SLICE=2/2 bundle exec rake cucumber
  stage: all-tests

selenium-1:
  script: SLICE=1/6 bundle exec rake selenium
  stage: all-tests
selenium-2:
  script: SLICE=2/6 bundle exec rake selenium
  stage: all-tests
selenium-3:
  script: SLICE=3/6 bundle exec rake selenium
  stage: all-tests
selenium-4:
  script: SLICE=4/6 bundle exec rake selenium
  stage: all-tests
selenium-5:
  script: SLICE=5/6 bundle exec rake selenium
  stage: all-tests
selenium-6:
  script: SLICE=6/6 bundle exec rake selenium
  stage: all-tests

# NOOSFERO_BUNDLE_OPTS=install makes migrations fails
# probably because of rubygems-integration
plugins-1:
  script: SLICE=1/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
  stage: all-tests
plugins-2:
  script: SLICE=2/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
  stage: all-tests
plugins-3:
  script: SLICE=3/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
  stage: all-tests
plugins-4:
  script: SLICE=4/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
  stage: all-tests
plugins-5:
  script: SLICE=5/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
  stage: all-tests