[Git][noosfero/noosfero][master] 3 commits: Enabling bundle caching in between builds

Rodrigo Souto gitlab at mg.gitlab.com
Tue Nov 20 17:11:39 BRST 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
10d8338a by Alax Alves at 2018-11-12T18:44:53Z
Enabling bundle caching in between builds

- - - - -
a6b0db22 by Alax Alves at 2018-11-20T14:29:42Z
Merge branch 'master' of https://gitlab.com/noosfero/noosfero into cache-build

- - - - -
509624d1 by Rodrigo Souto at 2018-11-20T19:11:36Z
Merge branch 'cache-build' into 'master'

Enables bundle caching in between builds

See merge request noosfero/noosfero!1641
- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -12,6 +12,12 @@ stages:
   - all-tests
   - code-quality
 
+.cache: &cache
+  cache:
+    key: "$CI_BUILD_REF_NAME"
+    paths:
+      - /usr/share/rubygems-integration/all/
+
 #smoke:
 #  script: bundle exec rake ci:smoke
 #  stage: smoke-tests
@@ -21,60 +27,73 @@ stages:
 
 specs-models:
   <<: *retriable
+  <<: *cache
   script: bundle exec rake test:specs
   stage: all-tests
 
 api:
   <<: *retriable
+  <<: *cache
   script: bundle exec rake test:api
   stage: all-tests
 
 units:
   <<: *retriable
+  <<: *cache
   script: bundle exec rake test:units
   stage: all-tests
 
 functionals:
   <<: *retriable
+  <<: *cache
   script: bundle exec rake test:functionals
   stage: all-tests
 
 integration:
   <<: *retriable
+  <<: *cache
   script: bundle exec rake test:integration
   stage: all-tests
 
 cucumber-1:
   <<: *retriable
+  <<: *cache
   script: SLICE=1/2 bundle exec rake cucumber
   stage: all-tests
 cucumber-2:
   <<: *retriable
+  <<: *cache
   script: SLICE=2/2 bundle exec rake cucumber
   stage: all-tests
 
 selenium-1:
   <<: *retriable
+  <<: *cache
   script: SLICE=1/6 bundle exec rake selenium
   stage: all-tests
 selenium-2:
   <<: *retriable
+  <<: *cache
   script: SLICE=2/6 bundle exec rake selenium
   stage: all-tests
 selenium-3:
   <<: *retriable
+  <<: *cache
   script: SLICE=3/6 bundle exec rake selenium
   stage: all-tests
 selenium-4:
   <<: *retriable
+  <<: *cache
   script: SLICE=4/6 bundle exec rake selenium
   stage: all-tests
 selenium-5:
   <<: *retriable
+  <<: *cache
   script: SLICE=5/6 bundle exec rake selenium
   stage: all-tests
 selenium-6:
   <<: *retriable
+  <<: *cache
   script: SLICE=6/6 bundle exec rake selenium
   stage: all-tests
 
@@ -82,32 +101,39 @@ selenium-6:
 # probably because of rubygems-integration
 plugins-1:
   <<: *retriable
+  <<: *cache
   script: SLICE=1/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
   stage: all-tests
 plugins-2:
   <<: *retriable
+  <<: *cache
   script: SLICE=2/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
   stage: all-tests
 plugins-3:
   <<: *retriable
+  <<: *cache
   script: SLICE=3/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
   stage: all-tests
 plugins-4:
   <<: *retriable
+  <<: *cache
   script: SLICE=4/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
   stage: all-tests
 plugins-5:
   <<: *retriable
+  <<: *cache
   script: SLICE=5/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
   stage: all-tests
 
 cypress:
   <<: *retriable
+  <<: *cache
   script: bundle exec rake cypress:run
   stage: all-tests
 
 rubocop:
   <<: *retriable
+  <<: *cache
   script:
   - rubocop
   stage: code-quality



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/71a599b4881b022ffef1fcc773d351afe6970b63...509624d1735e4c75d22a5dcc3c0b3d9391d959ad

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/71a599b4881b022ffef1fcc773d351afe6970b63...509624d1735e4c75d22a5dcc3c0b3d9391d959ad
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20181120/8cabd8d8/attachment-0001.html>


More information about the Noosfero-dev mailing list