.gitlab-ci.yml 973 Bytes
Newer Older
zauberstuhl's avatar
zauberstuhl committed
1 2 3 4
stages:
- test
- deploy

5
.job_template: &job_definition
zauberstuhl's avatar
zauberstuhl committed
6 7
  image: debian
  stage: test
8 9 10
  artifacts:
    reports:
      junit: report.xml
zauberstuhl's avatar
zauberstuhl committed
11 12
    paths:
    - report.*
13 14 15 16
  before_script:
  - bash scripts/install.sh
  script:
  - bash scripts/test.sh
zauberstuhl's avatar
zauberstuhl committed
17 18 19 20 21 22

.job_template: &no_pipeline
  except:
    variables:
    - $CI_PIPELINE_TRIGGERED

23 24 25 26 27 28 29
single project:
  <<: *job_definition
  only:
    refs:
    - master
    variables:
    - $CI_PIPELINE_TRIGGERED
zauberstuhl's avatar
zauberstuhl committed
30

31 32
test diaspora:
  <<: *job_definition
zauberstuhl's avatar
zauberstuhl committed
33
  <<: *no_pipeline
34 35
  variables:
    PROJECT: diaspora
zauberstuhl's avatar
zauberstuhl committed
36

37 38
test ganggo:
  <<: *job_definition
zauberstuhl's avatar
zauberstuhl committed
39
  <<: *no_pipeline
40 41
  variables:
    PROJECT: ganggo
zauberstuhl's avatar
zauberstuhl committed
42

43 44
test socialhome:
  <<: *job_definition
zauberstuhl's avatar
zauberstuhl committed
45
  <<: *no_pipeline
46 47
  variables:
    PROJECT: socialhome
zauberstuhl's avatar
zauberstuhl committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63

pages:
  <<: *no_pipeline
  image: ruby:2.3
  stage: deploy
  variables:
    JEKYLL_ENV: production
    LC_ALL: C.UTF-8
  before_script:
  - cd docs
  - bundle install
  script:
  - bundle exec jekyll build -d ../public
  artifacts:
    paths:
    - public