forked from blockfrost/blockfrost-backend-ryo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (43 loc) · 1.09 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
stages:
- prebuild
- build
- integration tests
Lint, Typescript:
stage: prebuild
script:
- nix-shell --run "yarn"
- nix-shell --run "yarn run lint"
- nix-shell --run "yarn type-check"
- nix-shell --run "yarn run test"
- nix-shell --run "yarn run coverage"
- nix-shell --run "yarn run build"
Nix build:
stage: build
needs:
- Lint, Typescript
script:
- nix-build -A blockfrost-backend-ryo
Integration tests - mainnet:
stage: integration tests
needs:
- Nix build
script:
- nix-build -A blockfrost-backend-ryo-test-mainnet --option sandbox false
Integration tests - preview:
stage: integration tests
needs:
- Nix build
script:
- nix-build -A blockfrost-backend-ryo-test-preview --option sandbox false
Integration tests - preprod:
stage: integration tests
needs:
- Nix build
script:
- nix-build -A blockfrost-backend-ryo-test-preprod --option sandbox false
Integration tests - sanchonet:
stage: integration tests
needs:
- Nix build
script:
- nix-build -A blockfrost-backend-ryo-test-sanchonet --option sandbox false