.gitlab-ci.yml 1.3 KB
Newer Older
ale's avatar
ale committed
1 2 3

stages:
  - test
4
  - build_pkgsrc
ale's avatar
ale committed
5
  - build_pkg
6
  - upload_pkg
ale's avatar
ale committed
7 8 9

# Do not run tests on master, they are executed by the
# Debian package builder.
10
# TODO: currently broken
ale's avatar
ale committed
11 12
test:
  stage: test
13
  image: "debian:stretch"
14
  script:
ale's avatar
ale committed
15
    - "./install_restic_for_tests.sh"
16 17
    - "apt-get install -y liblz4-tool golang"
    - "go test -v ./..."
ale's avatar
ale committed
18 19 20
  except:
    - master

21 22 23 24 25
build_pkgsrc:stretch:
  stage: build_pkgsrc
  image: "registry.git.autistici.org/ai3/build-deb:stretch-amd64"
  script:
    - build-dsc
ale's avatar
ale committed
26 27 28 29
  artifacts:
    paths:
      - build-deb/

30
build_pkg:stretch:amd64:
ale's avatar
ale committed
31
  stage: build_pkg
32 33 34
  image: "registry.git.autistici.org/ai3/build-deb:stretch-amd64"
  tags:
    - amd64
35
  script:
ale's avatar
ale committed
36
    - "./install_restic_for_tests.sh"
37
    - build-deb
ale's avatar
ale committed
38
  dependencies:
39 40 41 42 43 44 45 46 47 48 49
    - build_pkgsrc:stretch
  artifacts:
    paths:
      - output-deb/

build_pkg:stretch:arm64:
  stage: build_pkg
  image: "registry.git.autistici.org/ai3/build-deb:stretch-arm64"
  tags:
    - arm64
  script:
ale's avatar
ale committed
50
    - "./install_restic_for_tests.sh"
51 52 53
    - build-deb
  dependencies:
    - build_pkgsrc:stretch
ale's avatar
ale committed
54 55 56 57
  artifacts:
    paths:
      - output-deb/

58 59 60 61 62
upload_pkg:
  stage: upload_pkg
  image: "registry.git.autistici.org/ai3/build-deb:stretch-amd64"
  script:
    - upload-packages
ale's avatar
ale committed
63
  dependencies:
64 65
    - build_pkg:stretch:amd64
    - build_pkg:stretch:arm64
ale's avatar
ale committed
66 67
  only:
    - master