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

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

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

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

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

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

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

48
49
50
51
52
53
54
55

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

Valentin Reis's avatar
Valentin Reis committed
56
57
58
59
60
61
62
63
64
65
66
67
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/