.gitlab-ci.yml 751 Bytes
Newer Older
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
1 2 3 4 5 6 7 8 9

stages:
  - build
  - publish

build-stable:
  stage: build
  except:
    - /^upstream/
10
  image: registry.lrde.epita.fr/spot-debuild:stable
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
11
  script:
12 13 14 15 16 17
    - ls -l
    - ./build.sh stable
    - ls -l _build_stable
  artifacts:
    paths:
      - _build_stable/
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
18 19 20 21 22

build-unstable:
  stage: build
  except:
    - /^upstream/
23
  image: registry.lrde.epita.fr/spot-debuild
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
24
  script:
25 26 27 28 29 30
    - ls -l
    - ./build.sh unstable
    - ls -l _build_unstable
  artifacts:
    paths:
      - _build_unstable/
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
31 32

publish:
33 34
  tags:
    - dput
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
35 36 37
  only:
    - master
  stage: publish
38 39 40
  dependencies:
    - build-stable
    - build-unstable
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
41
  script:
42 43
    - cd _build_stable
    - ls -l
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
44
    - dput lrde *.changes
45 46 47 48
    - cd ../_build_unstable
    - ls -l
    - dput lrde *.changes