.gitlab-ci.yml 780 Bytes
Newer Older
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
1 2 3 4 5 6 7 8
stages:
  - build
  - publish

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

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

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