summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: b152e89dd0bf5725cf1d256a66f9d17d5d8d1116 (plain)
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
stages:
  - test
  - package
  - publish

test: &test
  stage: test
  image: $CI_REGISTRY/docker-images/layers:jessie-ruby
  script:
    - apt-get install attr ruby-ffi
    - make test

package: &package
  image: $CI_REGISTRY/docker-images/layers:$DISTRO-deb
  variables:
    DISTRO: jessie
  stage: package
  script:
    - package
  artifacts:
    paths:
      - pkg/

publish:
  stage: publish
  variables:
    RSYNC_HOSTNAME: repo.bytemark.co.uk
  tags:
    - shell
  script:
    - publish