2018-01-16 18:45:42 +04:00
|
|
|
|
2016-09-08 21:13:10 +04:00
|
|
|
variables:
|
2018-01-28 23:03:31 +04:00
|
|
|
opam_image: ${CI_REGISTRY_IMAGE}/opam
|
|
|
|
build_deps_image: ${CI_REGISTRY_IMAGE}/build_deps
|
2018-03-07 10:28:00 +04:00
|
|
|
public_docker_image: docker.io/${CI_PROJECT_PATH}
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
stages:
|
2018-03-12 12:58:46 +04:00
|
|
|
- precheck
|
2017-08-10 12:05:44 +04:00
|
|
|
- prepare
|
2018-01-28 23:03:31 +04:00
|
|
|
- build_deps
|
2016-09-08 21:13:10 +04:00
|
|
|
- build
|
|
|
|
- test
|
2017-12-06 22:52:02 +04:00
|
|
|
- opam
|
2016-09-08 21:13:10 +04:00
|
|
|
- publish
|
2017-03-09 17:43:59 +04:00
|
|
|
- deploy
|
2016-09-08 21:13:10 +04:00
|
|
|
- cleanup
|
|
|
|
|
2018-03-12 12:58:46 +04:00
|
|
|
## Check zeronet/alphanet
|
|
|
|
|
|
|
|
precheck:constant:
|
|
|
|
image: ${opam_image}
|
|
|
|
stage: precheck
|
|
|
|
only:
|
|
|
|
- zeronet
|
|
|
|
- alphanet
|
|
|
|
script:
|
|
|
|
- ./scripts/check_patch.sh "${CI_COMMIT_REF_NAME}"
|
|
|
|
|
2017-08-04 20:32:52 +04:00
|
|
|
## Template for `docker_in_docker` jobs
|
|
|
|
|
|
|
|
.dind_template: &dind_definition
|
2017-03-05 05:15:14 +04:00
|
|
|
image: docker:latest
|
2017-08-04 20:32:52 +04:00
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
2018-01-28 23:03:31 +04:00
|
|
|
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
|
|
|
|
- apk add --no-cache curl jq
|
|
|
|
- . ./scripts/version.sh
|
2016-09-08 21:13:10 +04:00
|
|
|
tags:
|
2018-01-28 23:57:04 +04:00
|
|
|
- safe_docker
|
2017-08-10 12:05:44 +04:00
|
|
|
|
2017-12-07 02:03:27 +04:00
|
|
|
prepare:opam:
|
2017-08-10 12:05:44 +04:00
|
|
|
<<: *dind_definition
|
|
|
|
stage: prepare
|
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
script:
|
2018-01-28 23:03:31 +04:00
|
|
|
- ./scripts/ci/create_docker_image.opam.sh "${opam_image}"
|
|
|
|
- docker push "${opam_image}:alpine-${alpine_version}_ocaml-${ocaml_version}"
|
|
|
|
- docker tag "${opam_image}:alpine-${alpine_version}_ocaml-${ocaml_version}"
|
|
|
|
"${opam_image}:latest"
|
|
|
|
- docker push "${opam_image}:latest"
|
2017-08-10 12:05:44 +04:00
|
|
|
|
2018-01-28 23:03:31 +04:00
|
|
|
## Tezos build dependencies
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2018-01-28 23:03:31 +04:00
|
|
|
build_deps:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *dind_definition
|
2018-01-28 23:03:31 +04:00
|
|
|
stage: build_deps
|
2016-09-08 21:13:10 +04:00
|
|
|
script:
|
2017-08-04 20:32:52 +04:00
|
|
|
## Building dependencies...
|
2018-01-28 23:03:31 +04:00
|
|
|
- ./scripts/ci/create_docker_image.build_deps.sh
|
|
|
|
"${build_deps_image}" "${CI_COMMIT_SHA}"
|
|
|
|
"${opam_image}:alpine-${alpine_version}_ocaml-${ocaml_version}"
|
|
|
|
"yes"
|
|
|
|
|
|
|
|
.build_deps_template: &build_deps_definition
|
|
|
|
image: ${build_deps_image}:${CI_COMMIT_SHA}
|
|
|
|
before_script:
|
2018-02-05 23:08:28 +04:00
|
|
|
- opam list
|
2018-01-28 23:57:04 +04:00
|
|
|
tags:
|
|
|
|
- gitlab-org
|
2018-01-28 23:03:31 +04:00
|
|
|
|
|
|
|
## Tezos
|
|
|
|
|
|
|
|
build:
|
|
|
|
<<: *build_deps_definition
|
|
|
|
stage: build
|
2018-01-30 02:23:52 +04:00
|
|
|
except:
|
2018-03-07 10:28:00 +04:00
|
|
|
- master
|
|
|
|
- alphanet
|
|
|
|
- zeronet
|
2018-01-28 23:03:31 +04:00
|
|
|
script:
|
|
|
|
- make all
|
|
|
|
- make build-test
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _build
|
|
|
|
expire_in: 1 day
|
2017-08-04 20:32:52 +04:00
|
|
|
|
2017-12-06 22:52:02 +04:00
|
|
|
## Basic tests (run on merge requests)
|
2017-08-04 20:32:52 +04:00
|
|
|
|
|
|
|
.test_template: &test_definition
|
2018-01-28 23:03:31 +04:00
|
|
|
<<: *build_deps_definition
|
2017-08-04 20:32:52 +04:00
|
|
|
stage: test
|
2017-12-06 22:52:02 +04:00
|
|
|
except:
|
2018-03-07 10:28:00 +04:00
|
|
|
- master
|
|
|
|
- alphanet
|
|
|
|
- zeronet
|
2017-08-04 20:32:52 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2018-02-02 21:16:50 +04:00
|
|
|
test:opam_packaging:
|
2018-01-23 16:51:36 +04:00
|
|
|
<<: *test_definition
|
|
|
|
script:
|
|
|
|
- ./scripts/check_opam_test.sh "$CI_PROJECT_DIR/$CI_CONFIG_PATH"
|
|
|
|
|
2017-11-13 19:34:00 +04:00
|
|
|
test:ocp-indent:
|
|
|
|
<<: *test_definition
|
|
|
|
script:
|
|
|
|
- jbuilder build @runtest_indent
|
|
|
|
|
2018-02-02 21:16:50 +04:00
|
|
|
test:stdlib:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2016-09-08 21:13:10 +04:00
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/lib_stdlib/runtest
|
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
test:stdlib_unix:
|
2018-02-02 21:16:50 +04:00
|
|
|
<<: *test_definition
|
|
|
|
script:
|
2018-02-08 13:51:02 +04:00
|
|
|
- jbuilder build @src/lib_stdlib_unix/runtest
|
2018-02-02 21:16:50 +04:00
|
|
|
|
|
|
|
test:data_encoding:
|
|
|
|
<<: *test_definition
|
|
|
|
script:
|
|
|
|
- jbuilder build @src/lib_data_encoding/runtest
|
|
|
|
|
|
|
|
test:storage:
|
|
|
|
<<: *test_definition
|
|
|
|
script:
|
|
|
|
- jbuilder build @src/lib_storage/runtest
|
|
|
|
|
|
|
|
test:crypto:
|
|
|
|
<<: *test_definition
|
|
|
|
script:
|
|
|
|
- jbuilder build @src/lib_crypto/runtest
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
test:shell:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2016-09-08 21:13:10 +04:00
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/lib_shell/runtest
|
2017-03-31 03:17:25 +04:00
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:p2p:io-scheduler:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-03-31 03:17:25 +04:00
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/lib_p2p/runtest_p2p_io_scheduler
|
2016-10-19 17:09:00 +04:00
|
|
|
|
2018-01-24 15:48:25 +04:00
|
|
|
test:p2p:socket:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-01-14 16:14:22 +04:00
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/lib_p2p/runtest_p2p_socket
|
2017-01-14 16:14:22 +04:00
|
|
|
|
2018-01-24 15:48:25 +04:00
|
|
|
test:p2p:pool:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-01-14 16:14:22 +04:00
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/lib_p2p/runtest_p2p_pool
|
2017-01-14 16:14:22 +04:00
|
|
|
|
2018-02-02 21:16:50 +04:00
|
|
|
test:proto_alpha:
|
2018-02-01 02:30:50 +04:00
|
|
|
<<: *test_definition
|
|
|
|
script:
|
2018-02-05 22:23:18 +04:00
|
|
|
- jbuilder build @src/proto_alpha/lib_protocol/runtest
|
2018-02-01 02:30:50 +04:00
|
|
|
|
2018-02-02 21:16:50 +04:00
|
|
|
test:client_alpha:transaction:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-04-06 00:40:02 +04:00
|
|
|
script:
|
2018-02-15 20:07:08 +04:00
|
|
|
- jbuilder build @src/proto_alpha/lib_baking/runtest_transaction
|
2017-04-06 00:40:02 +04:00
|
|
|
|
2018-02-02 21:16:50 +04:00
|
|
|
test:client_alpha:origination:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-04-06 00:42:40 +04:00
|
|
|
script:
|
2018-02-15 20:07:08 +04:00
|
|
|
- jbuilder build @src/proto_alpha/lib_baking/runtest_origination
|
2017-04-06 00:42:40 +04:00
|
|
|
|
2018-02-02 21:16:50 +04:00
|
|
|
test:client_alpha:endorsement:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-04-06 00:43:50 +04:00
|
|
|
script:
|
2018-02-15 20:07:08 +04:00
|
|
|
- jbuilder build @src/proto_alpha/lib_baking/runtest_endorsement
|
2017-04-06 00:43:50 +04:00
|
|
|
|
2018-02-02 21:16:50 +04:00
|
|
|
test:client_alpha:vote:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-04-12 20:53:23 +04:00
|
|
|
script:
|
2018-02-15 20:07:08 +04:00
|
|
|
- jbuilder build @src/proto_alpha/lib_baking/runtest_vote
|
2017-04-12 20:53:23 +04:00
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:basic.sh:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-01-14 16:14:22 +04:00
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/bin_client/runtest_basic.sh
|
2017-03-05 05:15:14 +04:00
|
|
|
|
2017-07-24 21:06:40 +04:00
|
|
|
test:contracts.sh:
|
2017-08-04 20:32:52 +04:00
|
|
|
<<: *test_definition
|
2017-07-24 21:06:40 +04:00
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/bin_client/runtest_contracts.sh
|
2017-07-24 21:06:40 +04:00
|
|
|
|
2017-08-09 18:09:41 +04:00
|
|
|
test:multinode.sh:
|
|
|
|
<<: *test_definition
|
|
|
|
script:
|
2018-02-02 21:16:50 +04:00
|
|
|
- jbuilder build @src/bin_client/runtest_multinode.sh
|
2017-08-09 18:09:41 +04:00
|
|
|
|
2018-02-13 20:01:33 +04:00
|
|
|
test:inject.sh:
|
|
|
|
<<: *test_definition
|
|
|
|
script:
|
|
|
|
- jbuilder build @src/bin_client/runtest_injection.sh
|
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
test:proto:sandbox:
|
2017-10-27 22:45:31 +04:00
|
|
|
<<: *test_definition
|
|
|
|
script:
|
2017-11-27 09:13:12 +04:00
|
|
|
- jbuilder build @runtest_sandbox
|
2017-10-27 22:45:31 +04:00
|
|
|
|
2017-12-06 22:52:02 +04:00
|
|
|
## Basic tests through opam packaged (run on master only)
|
|
|
|
|
|
|
|
.opam_template: &opam_definition
|
2018-01-28 23:03:31 +04:00
|
|
|
image: ${opam_image}
|
2017-12-06 22:52:02 +04:00
|
|
|
stage: opam
|
2018-01-28 23:03:31 +04:00
|
|
|
dependencies: []
|
2017-12-06 22:52:02 +04:00
|
|
|
only:
|
2018-03-07 10:28:00 +04:00
|
|
|
- master
|
2018-01-28 23:03:31 +04:00
|
|
|
- /^.*opam.*$/
|
2017-12-06 22:52:02 +04:00
|
|
|
script:
|
|
|
|
- ./scripts/opam-pin.sh
|
|
|
|
- opam depext --yes ${package}
|
2018-02-05 23:08:28 +04:00
|
|
|
- opam install --yes ${package}
|
|
|
|
- opam reinstall --yes --with-test ${package}
|
2018-01-28 23:57:04 +04:00
|
|
|
tags:
|
|
|
|
- gitlab-org
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-01-23 16:51:36 +04:00
|
|
|
##BEGIN_OPAM##
|
|
|
|
opam:00:tezos-stdlib:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-01-23 16:51:36 +04:00
|
|
|
package: tezos-stdlib
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:01:tezos-data-encoding:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tezos-data-encoding
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:02:ocplib-resto:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: ocplib-resto
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:03:blake2:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: blake2
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:04:tweetnacl:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tweetnacl
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:05:tezos-error-monad:
|
2018-02-04 21:39:34 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tezos-error-monad
|
2018-02-04 21:39:34 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:06:ocplib-resto-directory:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: ocplib-resto-directory
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:07:tezos-crypto:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tezos-crypto
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-08 13:51:02 +04:00
|
|
|
opam:08:tezos-micheline:
|
2018-02-04 21:39:34 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tezos-micheline
|
2018-02-04 21:39:34 +04:00
|
|
|
|
2018-02-12 01:36:49 +04:00
|
|
|
opam:09:tezos-protocol-environment-sigs:
|
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-protocol-environment-sigs
|
|
|
|
|
|
|
|
opam:10:tezos-rpc:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tezos-rpc
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-12 01:36:49 +04:00
|
|
|
opam:11:tezos-base:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tezos-base
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:12:pbkdf:
|
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: pbkdf
|
|
|
|
|
|
|
|
opam:13:ocplib-resto-cohttp:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: ocplib-resto-cohttp
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:14:irmin-leveldb:
|
2018-02-02 19:26:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: irmin-leveldb
|
2018-02-02 19:26:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:15:tezos-stdlib-unix:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 13:51:02 +04:00
|
|
|
package: tezos-stdlib-unix
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:16:bip39:
|
2018-02-08 22:00:01 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: bip39
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:17:tezos-rpc-http:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-rpc-http
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:18:tezos-shell-services:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-shell-services
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:19:tezos-storage:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-storage
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:20:tezos-protocol-compiler:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-protocol-compiler
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:21:tezos-client-base:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-client-base
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:22:tezos-protocol-alpha:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-protocol-alpha
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-17 17:39:45 +04:00
|
|
|
opam:23:tezos-protocol-environment:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-17 17:39:45 +04:00
|
|
|
package: tezos-protocol-environment
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:24:tezos-client-alpha:
|
2018-02-08 22:00:01 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-client-alpha
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:25:tezos-client-commands:
|
2018-02-08 22:00:01 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-client-commands
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:26:tezos-baking-alpha:
|
2018-02-08 22:00:01 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-baking-alpha
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:27:tezos-protocol-genesis:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-04 21:39:34 +04:00
|
|
|
package: tezos-protocol-genesis
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:28:tezos-protocol-updater:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-protocol-updater
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:29:tezos-p2p:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-04 21:39:34 +04:00
|
|
|
package: tezos-p2p
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:30:ocplib-resto-json:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 22:00:01 +04:00
|
|
|
package: ocplib-resto-json
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:31:tezos-baking-alpha-commands:
|
2018-01-23 16:51:36 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 22:00:01 +04:00
|
|
|
package: tezos-baking-alpha-commands
|
2018-02-15 20:07:08 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:32:tezos-client-alpha-commands:
|
2018-02-15 20:07:08 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-08 22:00:01 +04:00
|
|
|
package: tezos-client-alpha-commands
|
2018-01-29 04:26:41 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:33:tezos-client-base-unix:
|
2018-02-08 22:00:01 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-client-base-unix
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:34:tezos-client-genesis:
|
2018-01-29 04:26:41 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-client-genesis
|
2018-01-23 16:51:36 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:35:tezos-embedded-protocol-alpha:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-embedded-protocol-alpha
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:36:tezos-embedded-protocol-demo:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-embedded-protocol-demo
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:37:tezos-embedded-protocol-genesis:
|
2018-01-29 04:26:41 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: tezos-embedded-protocol-genesis
|
2018-01-29 04:26:41 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:38:tezos-shell:
|
2018-02-04 21:39:34 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-shell
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:39:ocplib-ezresto:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-01-23 16:51:36 +04:00
|
|
|
package: ocplib-ezresto
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:40:tezos-client:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-client
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:41:tezos-node:
|
2017-12-06 22:52:02 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-node
|
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:42:ocplib-ezresto-directory:
|
2018-01-23 16:51:36 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-02 19:26:02 +04:00
|
|
|
package: ocplib-ezresto-directory
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:43:tezos-baker-alpha:
|
2018-02-14 03:54:33 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-15 20:07:08 +04:00
|
|
|
package: tezos-baker-alpha
|
2018-02-14 03:54:33 +04:00
|
|
|
|
2018-02-16 17:33:10 +04:00
|
|
|
opam:44:tezos-protocol-demo:
|
2018-02-14 19:24:08 +04:00
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
2018-02-15 20:07:08 +04:00
|
|
|
package: tezos-protocol-demo
|
|
|
|
|
2018-02-17 17:39:45 +04:00
|
|
|
opam:45:tezos-protocol-environment-shell:
|
|
|
|
<<: *opam_definition
|
|
|
|
variables:
|
|
|
|
package: tezos-protocol-environment-shell
|
|
|
|
|
2018-01-23 16:51:36 +04:00
|
|
|
|
|
|
|
##END_OPAM##
|
2017-12-06 22:52:02 +04:00
|
|
|
|
2017-08-04 20:32:52 +04:00
|
|
|
## Publishing (small) docker images with tezos binaries
|
2017-01-14 16:14:22 +04:00
|
|
|
|
2017-08-04 20:32:52 +04:00
|
|
|
publish:docker:minimal:
|
|
|
|
<<: *dind_definition
|
2017-01-22 04:59:18 +04:00
|
|
|
stage: publish
|
2017-03-05 05:15:14 +04:00
|
|
|
only:
|
2018-03-07 10:28:00 +04:00
|
|
|
- master
|
|
|
|
- alphanet
|
|
|
|
- zeronet
|
2017-03-09 17:43:59 +04:00
|
|
|
script:
|
2018-01-30 01:11:18 +04:00
|
|
|
- ./scripts/ci/create_docker_image.build.sh
|
2018-01-28 23:03:31 +04:00
|
|
|
"tezos_build" "${CI_COMMIT_REF_NAME}"
|
|
|
|
"${build_deps_image}:${CI_COMMIT_SHA}"
|
2018-01-30 01:11:18 +04:00
|
|
|
- ./scripts/ci/create_docker_image.minimal.sh
|
2018-01-28 23:03:31 +04:00
|
|
|
"${public_docker_image}" "${CI_COMMIT_REF_NAME}"
|
|
|
|
"tezos_build:${CI_COMMIT_REF_NAME}"
|
2017-08-17 21:26:13 +04:00
|
|
|
- mkdir ~/.docker || true
|
2018-01-28 23:03:31 +04:00
|
|
|
- echo "${CI_DOCKER_AUTH}" > ~/.docker/config.json ;
|
|
|
|
- docker push "${public_docker_image}:${CI_COMMIT_REF_NAME}"
|
2017-03-09 17:43:59 +04:00
|
|
|
|
2017-08-04 20:32:52 +04:00
|
|
|
## Publish to github...
|
2017-03-09 17:43:59 +04:00
|
|
|
|
2017-01-22 04:59:18 +04:00
|
|
|
publish:github:
|
2018-01-28 23:03:31 +04:00
|
|
|
image: ${opam_image}
|
2017-01-22 04:59:18 +04:00
|
|
|
stage: publish
|
2018-01-28 23:03:31 +04:00
|
|
|
dependencies: []
|
2016-09-08 21:13:10 +04:00
|
|
|
only:
|
|
|
|
- master@tezos/tezos
|
2017-08-04 20:32:52 +04:00
|
|
|
- alphanet@tezos/tezos
|
2016-09-08 21:13:10 +04:00
|
|
|
script:
|
|
|
|
- echo "${CI_KH}" > ~/.ssh/known_hosts
|
2017-01-22 04:59:18 +04:00
|
|
|
- echo "${CI_PK_GITHUB}" > ~/.ssh/id_rsa
|
2016-09-08 21:13:10 +04:00
|
|
|
- chmod 400 ~/.ssh/id_rsa
|
|
|
|
- rm -fr .git/refs/original
|
2018-01-30 01:11:18 +04:00
|
|
|
- sudo apk add --no-cache openssh
|
2018-01-28 23:03:31 +04:00
|
|
|
- git push git@github.com:tezos/tezos.git -f HEAD:${CI_COMMIT_REF_NAME}
|
2018-01-28 23:57:04 +04:00
|
|
|
tags:
|
|
|
|
- gitlab-org
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2018-01-28 23:03:31 +04:00
|
|
|
## Publish docs to gitlab...
|
|
|
|
|
2018-02-06 03:46:46 +04:00
|
|
|
pages:
|
2018-01-28 23:03:31 +04:00
|
|
|
image: ${build_deps_image}:${CI_COMMIT_SHA}
|
|
|
|
stage: publish
|
|
|
|
only:
|
|
|
|
- master@tezos/tezos
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
script:
|
2018-01-30 02:22:56 +04:00
|
|
|
- sudo apk add --no-cache py3-sphinx py3-sphinx_rtd_theme
|
2018-01-28 23:03:31 +04:00
|
|
|
- sudo ln -s /usr/bin/sphinx-build-3 /usr/bin/sphinx-build
|
2018-01-30 01:54:20 +04:00
|
|
|
- opam install --yes odoc
|
2018-01-28 23:03:31 +04:00
|
|
|
- make doc-html && sudo mv docs/_build "${CI_PROJECT_DIR}"/public
|
2018-01-28 23:57:04 +04:00
|
|
|
tags:
|
|
|
|
- gitlab-org
|
2017-08-08 19:04:11 +04:00
|
|
|
|
2018-02-18 21:24:12 +04:00
|
|
|
documentation:
|
|
|
|
image: ${build_deps_image}:${CI_COMMIT_SHA}
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- /^.*doc.*$/
|
|
|
|
script:
|
|
|
|
- sudo apk add --no-cache py3-sphinx py3-sphinx_rtd_theme
|
|
|
|
- sudo ln -s /usr/bin/sphinx-build-3 /usr/bin/sphinx-build
|
|
|
|
- opam install --yes odoc
|
|
|
|
- make doc-html
|
|
|
|
tags:
|
|
|
|
- gitlab-org
|
|
|
|
|
|
|
|
|
2018-03-08 09:16:18 +04:00
|
|
|
## Relaunching the bootstrap servers of the alphanet/zeronet
|
2017-08-08 19:04:11 +04:00
|
|
|
|
|
|
|
.bootstrap_template: &bootstrap_definition
|
2018-01-28 23:03:31 +04:00
|
|
|
image: ${opam_image}
|
2017-03-09 17:43:59 +04:00
|
|
|
stage: deploy
|
2018-01-28 23:03:31 +04:00
|
|
|
dependencies: []
|
2017-08-08 19:04:11 +04:00
|
|
|
before_script:
|
2017-03-09 17:43:59 +04:00
|
|
|
- echo "${CI_KH}" > ~/.ssh/known_hosts
|
2018-03-08 09:16:18 +04:00
|
|
|
- echo "${CI_PK_ALPHANET}" | tr -d "\r" > ~/.ssh/id_ed25519 ;
|
2017-08-08 19:04:11 +04:00
|
|
|
- echo "${CI_SSH_CONFIG}" | tr -d "\r" > ~/.ssh/config
|
2017-07-06 20:09:09 +04:00
|
|
|
- chmod 600 ~/.ssh/id_ed25519
|
2018-03-08 09:16:18 +04:00
|
|
|
- sudo apk add --no-cache openssh
|
2017-03-09 17:43:59 +04:00
|
|
|
allow_failure: true
|
2018-01-28 23:57:04 +04:00
|
|
|
tags:
|
|
|
|
- gitlab-org
|
2017-03-09 17:43:59 +04:00
|
|
|
|
2017-08-08 19:04:11 +04:00
|
|
|
deploy:bootstrap1:
|
|
|
|
<<: *bootstrap_definition
|
2018-03-08 09:16:18 +04:00
|
|
|
only:
|
|
|
|
- alphanet@tezos/tezos
|
2017-03-09 17:43:59 +04:00
|
|
|
script:
|
2017-08-08 19:04:11 +04:00
|
|
|
- ssh bootstrap1
|
|
|
|
|
|
|
|
deploy:bootstrap2:
|
|
|
|
<<: *bootstrap_definition
|
2018-03-08 09:16:18 +04:00
|
|
|
only:
|
|
|
|
- alphanet@tezos/tezos
|
2017-08-08 19:04:11 +04:00
|
|
|
script:
|
|
|
|
- ssh bootstrap2
|
|
|
|
|
|
|
|
deploy:bootstrap3:
|
|
|
|
<<: *bootstrap_definition
|
2018-03-08 09:16:18 +04:00
|
|
|
only:
|
|
|
|
- alphanet@tezos/tezos
|
2017-08-08 19:04:11 +04:00
|
|
|
script:
|
|
|
|
- ssh bootstrap3
|
|
|
|
|
|
|
|
deploy:bootstrap4:
|
|
|
|
<<: *bootstrap_definition
|
2018-03-08 09:16:18 +04:00
|
|
|
only:
|
|
|
|
- alphanet@tezos/tezos
|
2017-08-08 19:04:11 +04:00
|
|
|
script:
|
|
|
|
- ssh bootstrap4
|
|
|
|
|
|
|
|
deploy:bootstrap5:
|
|
|
|
<<: *bootstrap_definition
|
2018-03-08 09:16:18 +04:00
|
|
|
only:
|
|
|
|
- alphanet@tezos/tezos
|
2017-08-08 19:04:11 +04:00
|
|
|
script:
|
|
|
|
- ssh bootstrap5
|
|
|
|
|
|
|
|
deploy:bootstrap6:
|
|
|
|
<<: *bootstrap_definition
|
2018-03-08 09:16:18 +04:00
|
|
|
only:
|
|
|
|
- alphanet@tezos/tezos
|
2017-08-08 19:04:11 +04:00
|
|
|
script:
|
|
|
|
- ssh bootstrap6
|
|
|
|
|
2018-03-08 09:16:18 +04:00
|
|
|
|
|
|
|
deploy:zeronet1:
|
|
|
|
<<: *bootstrap_definition
|
|
|
|
only:
|
|
|
|
- zeronet@tezos/tezos
|
|
|
|
script:
|
|
|
|
- ssh zeronet1
|
|
|
|
|
|
|
|
deploy:zeronet2:
|
|
|
|
<<: *bootstrap_definition
|
|
|
|
only:
|
|
|
|
- zeronet@tezos/tezos
|
|
|
|
script:
|
|
|
|
- ssh zeronet2
|
|
|
|
|
|
|
|
deploy:zeronet3:
|
|
|
|
<<: *bootstrap_definition
|
|
|
|
only:
|
|
|
|
- zeronet@tezos/tezos
|
|
|
|
script:
|
|
|
|
- ssh zeronet3
|
|
|
|
|
2017-08-16 16:18:34 +04:00
|
|
|
# cleanup:
|
|
|
|
# <<: *dind_definition
|
|
|
|
# stage: cleanup
|
2018-01-28 23:03:31 +04:00
|
|
|
# dependencies: []
|
2017-08-16 16:18:34 +04:00
|
|
|
# script:
|
2018-01-28 23:03:31 +04:00
|
|
|
# - ./scripts/ci/docker_registry_delete.sh
|
|
|
|
# "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}"
|
|
|
|
# "${build_deps_image}" "${CI_COMMIT_SHA}"
|