This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
94 lines (81 loc) · 1.91 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
default:
image: docker/compose:alpine-1.29.2
tags:
- docker
variables:
GIT_SUBMODULE_STRATEGY: recursive
GOOGLE_TAG_LATEST: eu.gcr.io/papers-dev-kubernetes/$CI_PROJECT_NAMESPACE/ci_$CI_PROJECT_NAME:latest
services:
- docker:dind
stages:
- setup
- checks
- compile
- test
# .before_docker_build:
# image: google/cloud-sdk
# before_script:
# - echo $GCLOUD_GOOGLE_KEY_DEV > key.json
# - gcloud auth activate-service-account $GCLOUD_ACCOUNT_DEV --key-file key.json
# - gcloud config set account $GCLOUD_ACCOUNT_DEV
# - gcloud config set project $GCLOUD_PROJECT_DEV
# - gcloud config set compute/zone $GCLOUD_ZONE_DEV
# - gcloud container clusters get-credentials papers-cluster-development
# - gcloud auth configure-docker
# tags:
# - docker
# docker_build:
# extends: .before_docker_build
# stage: setup
# script:
# - docker build -t $GOOGLE_TAG_LATEST .
# - docker push $GOOGLE_TAG_LATEST
# .setup:
# image: $GOOGLE_TAG_LATEST
# before_script:
# - cp -r /_build .
# - make
# when: always
# tags:
# - docker
.setup:
image: node:latest
variables:
DEBIAN_FRONTEND: "noninteractive"
before_script:
- apt-get update
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-setuptools build-essential libsodium-dev libsecp256k1-dev libgmp3-dev git curl
- make
when: always
tags:
- docker
# format-check:
# extends: .setup
# stage: checks
# script:
# - make fmt-check
compile_tezos_contracts:
extends: .setup
stage: compile
script:
- make compile-tezos
compile_evm_contracts:
extends: .setup
stage: compile
script:
- make compile-evm
test_tezos_contracts:
extends: .setup
stage: test
script:
- make test-tezos
test_evm_contracts:
extends: .setup
stage: test
script:
- make test-evm
test_sdk:
extends: .setup
stage: test
script:
- make test-sdk