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

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

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

hlint:
  stage: source
  tags:
    - kvm
    - nix
  script:
23
    - nix-shell -p gnumake --run "make hlint"
Valentin Reis's avatar
Valentin Reis committed
24

25
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
34
dhall-format:
  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-build:
  stage: lib
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
56
57
58
59

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/