.gitlab-ci.yml 605 Bytes
Newer Older
Michal Horejsek's avatar
Michal Horejsek committed
1 2 3 4
# Copyright (C) 2017 CZ.NIC, z.s.p.o. <https://www.nic.cz>

image: debian:8

5 6 7
variables:
  DOCKER_DRIVER: overlay2

Michal Horejsek's avatar
Michal Horejsek committed
8 9
before_script:
  - apt-get --quiet update
Michal Horejsek's avatar
Michal Horejsek committed
10
  - apt-get install -y make
Michal Horejsek's avatar
Michal Horejsek committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  - make prepare-dev

stages:
  - test
  - build


test:
  stage: test
  script:
    - make test

lint:
  stage: test
  script:
    - make lint


build:
  stage: build
  script:
    - make build
  artifacts:
    paths:
Michal Horejsek's avatar
Michal Horejsek committed
35 36 37
    - ./*.deb
    - ./*.rpm
    - ./*.tar
38 39 40 41 42 43 44 45 46 47 48 49

build-docker:
  image: docker:latest
  services:
    - docker:dind
  stage: build
  tags:
    - dind
  before_script:
    - ''
  script:
    - docker build .