User Tools

Site Tools


gitlab-ci.yml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gitlab-ci.yml [2018/02/06 20:40]
admin created
gitlab-ci.yml [2018/02/07 07:47] (current)
admin [Configure Job]
Line 3: Line 3:
 ===== Sitespeed.io Performance Test ===== ===== Sitespeed.io Performance Test =====
  
-Allow gitlab-runner to run docker containers in ''--privileged'' mode +<note tip>Allow gitlab-runner to run docker containers in ''--privileged'' mode</note> 
  
 Add ''privileged=true'' to gitlab-runners /etc/gitlab-runner/config.toml : Add ''privileged=true'' to gitlab-runners /etc/gitlab-runner/config.toml :
Line 22: Line 22:
 </code> </code>
  
 +==== Configure Job ====
  
 <code yaml gitlab-ci.yml> <code yaml gitlab-ci.yml>
Line 27: Line 28:
   - performance   - performance
   - ...   - ...
 +
 +variables:
 +  CI_ENVIRONMENT_URL: "https://www.knallimall.org"
 +  ...
  
 performance: performance:
-  <<: *add_ssh_support 
   stage: performance   stage: performance
   image: docker:git   image: docker:git
   services:   services:
     - docker:dind     - docker:dind
 +  variables:
 +    GIT_STRATEGY: none # Disable Git Repository Setup ... clone etc.
 +    GIT_CHECKOUT: "false" # Disable Git Checkout
   script:   script:
 +    - export CI_ENVIRONMENT_URL=${CI_ENVIRONMENT_URL}
     - mkdir sitespeed-results     - mkdir sitespeed-results
-    - docker run --privileged --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io --outputFolder sitespeed-results https://www.knallimall.org -d 1 -n 1+    - docker run --privileged --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io --outputFolder sitespeed-results $CI_ENVIRONMENT_URL -d 1 -n 1
   artifacts:   artifacts:
 +    name: "${CI_ENVIRONMENT_URL}_${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}" # Name artifact file
     paths:     paths:
     - sitespeed-results/     - sitespeed-results/
Line 43: Line 52:
  
 </code> </code>
 +
 +
 +===== Codeclimate Code Analysis =====
 +
 +... blabla here ...
 +
 +===== Codeception thingies here =====
 +
 +... blabla here ...
gitlab-ci.yml.1517946041.txt.gz · Last modified: 2018/02/06 20:40 by admin