.gitlab-ci.yml 1.18 KB
Newer Older
1
image: registry.git.feneas.org/feneas/federation/testsuite:latest
2
stages:
zauberstuhl's avatar
zauberstuhl committed
3
- build
4 5 6
- test
- deploy

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

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

zauberstuhl's avatar
zauberstuhl committed
22 23 24 25 26 27 28
build docker images:
  stage: build
  script:
  - bash scripts/build_docker_image.sh
  only:
  - tags

29 30 31 32 33 34 35
single project:
  <<: *job_definition
  only:
    refs:
    - master
    variables:
    - $CI_PIPELINE_TRIGGERED
36

37 38
test diaspora:
  <<: *job_definition
39
  <<: *no_pipeline
40 41
  variables:
    PROJECT: diaspora
42

43 44
test ganggo:
  <<: *job_definition
45
  <<: *no_pipeline
46 47
  variables:
    PROJECT: ganggo
48

49 50
test socialhome:
  <<: *job_definition
51
  <<: *no_pipeline
52 53
  variables:
    PROJECT: socialhome
54

zauberstuhl's avatar
zauberstuhl committed
55 56 57 58 59 60
test testproject:
  <<: *job_definition
  <<: *no_pipeline
  variables:
    PROJECT: testproject

61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
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
zauberstuhl's avatar
zauberstuhl committed
76 77
  only:
  - master