This repository has been archived by the owner on Sep 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.gitlab-ci.yml
63 lines (58 loc) · 1.8 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
# .gitlab-ci.yml
#
# pallet-contracts-waterfall
#
# pipelines can be triggered manually in the web
# setting DEPLOY_TAG will only deploy the tagged image
stages:
- build
variables: &default-vars
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: 100
CARGO_INCREMENTAL: 0
.docker-env: &docker-env
image: paritytech/contracts-ci-linux:solang-v0.1.2
only:
- master
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- schedules
- web
- branches
- triggers
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
interruptible: true
tags:
- linux-docker
#### stage: build
build-and-test:
stage: build
<<: *docker-env
variables:
<<: *default-vars
SUBSTRATE_PATH: "./substrate"
SOLANG_PATH: "/usr/local/cargo/bin/solang"
before_script:
# upstream CI can override global vars here
- unset CARGO_TARGET_DIR
- rustup show
- cargo --version
- yarn --version
- npm --version
- wasm-prune -V
- sccache -s
script:
- echo "_____Building contracts_____"
- ./build.sh
- echo "_____Downloading the latest nightly Substrate_____"
# master from gitlab
# - curl "https://gitlab.parity.io/parity/substrate/-/jobs/artifacts/master/download?job=build-linux-substrate" --output artifacts.zip --location
# published master
- curl "https://releases.parity.io/substrate/x86_64-debian:stretch/latest/substrate/substrate" --output substrate --location
- chmod +x ./substrate
- ./test.sh