.gitlab-ci.yml 994 Bytes
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1
2
stages:
  - source
3
  - build
Valentin Reis's avatar
Valentin Reis committed
4

5
6
7
variables:
  NIX_PATH: "nixpkgs=./."

8
make:ormolu:
Valentin Reis's avatar
Valentin Reis committed
9
10
11
12
13
  stage: source
  tags:
    - kvm
    - nix
  script:
14
    - nix-shell -p gnumake --run "make ormolu"
Valentin Reis's avatar
Valentin Reis committed
15

16
make:hlint:
Valentin Reis's avatar
Valentin Reis committed
17
18
19
20
21
  stage: source
  tags:
    - kvm
    - nix
  script:
22
    - nix-shell -p gnumake --run "make hlint"
Valentin Reis's avatar
Valentin Reis committed
23

24
make:shellcheck:
Valentin Reis's avatar
Valentin Reis committed
25
26
27
28
29
  stage: source
  tags:
    - kvm
    - nix
  script:
30
    - nix-shell -p gnumake --run "make shellcheck"
Valentin Reis's avatar
Valentin Reis committed
31

32
make:dhall-format:
33
  stage: source
Valentin Reis's avatar
Valentin Reis committed
34
35
36
  tags:
    - kvm
    - nix
37
38
  script:
    - nix-shell -p gnumake --run "make dhall-format"
Valentin Reis's avatar
Valentin Reis committed
39

40
41
nix:package:
  stage: build
Valentin Reis's avatar
Valentin Reis committed
42
43
44
  tags:
    - kvm
    - nix
45
  script: nix-build -A hbandit --no-build-output
Valentin Reis's avatar
Valentin Reis committed
46

47
48
49
50
51
52
53
54

make:doc:
  stage: build
  tags:
    - kvm
    - nix
  script: make doc

Valentin Reis's avatar
Valentin Reis committed
55
56
57
58
59
60
61
62
63
64
65
66
readthedocs:
  stage: docs
  when: on_success
  only:
    - master
    - staging
  tags:
    - kvm
    - nix
  script:
    - echo "token=$RTD_TOKEN"
    - nix run nixpkgs.curl -c curl --fail -X POST -d "token=$RTD_TOKEN" readthedocs.org/api/v2/webhook/hbandit/109499/