2016-09-08 21:13:10 +04:00
|
|
|
variables:
|
2017-03-05 05:15:14 +04:00
|
|
|
public_docker_image: docker.io/tezos/tezos
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-03-05 05:15:14 +04:00
|
|
|
image: ${CI_REGISTRY_IMAGE}:${CI_BUILD_REF}_build_deps
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build_deps
|
|
|
|
- build
|
|
|
|
- test
|
2017-03-05 05:15:14 +04:00
|
|
|
- build_docker
|
2016-09-08 21:13:10 +04:00
|
|
|
- publish
|
|
|
|
- cleanup
|
|
|
|
|
|
|
|
build_deps:
|
|
|
|
stage: build_deps
|
2017-03-05 05:15:14 +04:00
|
|
|
image: docker:latest
|
2016-09-08 21:13:10 +04:00
|
|
|
tags:
|
|
|
|
- docker_builder
|
|
|
|
script:
|
2017-01-22 04:59:18 +04:00
|
|
|
- ./scripts/create_build_deps_docker_image.sh
|
2017-03-05 05:15:14 +04:00
|
|
|
${CI_REGISTRY_IMAGE} ${CI_BUILD_REF}_build_deps
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-01-02 17:02:55 +04:00
|
|
|
- echo "PRODUCTION=yes" > src/Makefile.local
|
2017-03-05 05:15:14 +04:00
|
|
|
- make -C src -j4
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test build
|
2016-09-08 21:13:10 +04:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
untracked: true
|
|
|
|
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:utils:data-encoding:
|
2016-09-08 21:13:10 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/utils run-test-data-encoding
|
2016-09-08 21:13:10 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:utils:merkle:
|
2016-09-08 21:13:10 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/utils run-test-merkle
|
2016-09-08 21:13:10 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:shell:store:
|
2016-09-08 21:13:10 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/shell run-test-store
|
2016-09-08 21:13:10 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:shell:context:
|
2016-09-08 21:13:10 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/shell run-test-context
|
2016-09-08 21:13:10 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:shell:state:
|
2016-10-19 17:09:00 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/shell run-test-state
|
2017-03-31 03:17:25 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:p2p:io-scheduler:
|
2017-03-31 03:17:25 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/p2p run-test-p2p-io-scheduler
|
2016-10-19 17:09:00 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:p2p:connection:
|
2017-01-14 16:14:22 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/p2p run-test-p2p-connection
|
2017-01-14 16:14:22 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:p2p:connection-pool:
|
2017-01-14 16:14:22 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test/p2p run-test-p2p-connection-pool
|
2017-01-14 16:14:22 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-06 00:40:02 +04:00
|
|
|
test:proto_alpha:transactions:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
|
|
|
- make -C test/proto_alpha run-test-transaction
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-06 00:42:40 +04:00
|
|
|
test:proto_alpha:origination:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
|
|
|
- make -C test/proto_alpha run-test-origination
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-06 00:43:50 +04:00
|
|
|
test:proto_alpha:endorsement:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
|
|
|
- make -C test/proto_alpha run-test-endorsement
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-12 20:53:23 +04:00
|
|
|
test:proto_alpha:vote:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
|
|
|
- make -C test/proto_alpha run-test-vote
|
|
|
|
dependencies:
|
|
|
|
- build
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
test:basic.sh:
|
2017-01-14 16:14:22 +04:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
script:
|
2017-04-05 20:24:26 +04:00
|
|
|
- make -C test run-basic.sh
|
2017-01-14 16:14:22 +04:00
|
|
|
dependencies:
|
|
|
|
- build
|
2017-03-05 05:15:14 +04:00
|
|
|
|
|
|
|
build:docker:
|
|
|
|
stage: build_docker
|
|
|
|
image: docker:latest
|
|
|
|
tags:
|
2017-03-14 12:18:35 +04:00
|
|
|
- public_docker_builder
|
2017-03-05 05:15:14 +04:00
|
|
|
script:
|
2017-03-14 12:18:35 +04:00
|
|
|
- ./scripts/create_docker_image.sh "${CI_REGISTRY_IMAGE}" "${CI_BUILD_REF}" .
|
2017-03-05 05:15:14 +04:00
|
|
|
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" "${CI_REGISTRY}"
|
|
|
|
- docker tag "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF}"
|
|
|
|
"${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_NAME}"
|
|
|
|
- docker push "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_NAME}"
|
|
|
|
- docker rmi "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_NAME}"
|
2017-01-14 16:14:22 +04:00
|
|
|
|
2017-01-22 04:59:18 +04:00
|
|
|
publish:docker:
|
|
|
|
stage: publish
|
2017-03-05 05:15:14 +04:00
|
|
|
image: docker:latest
|
2017-01-22 04:59:18 +04:00
|
|
|
tags:
|
2017-03-14 12:18:35 +04:00
|
|
|
- public_docker_builder
|
2017-03-05 05:15:14 +04:00
|
|
|
only:
|
|
|
|
- master@tezos/tezos
|
|
|
|
- alphanet@tezos/tezos
|
2017-01-22 04:59:18 +04:00
|
|
|
script:
|
2017-03-05 05:15:14 +04:00
|
|
|
- mkdir -p ~/.docker ;
|
|
|
|
- echo "$CI_DOCKER_AUTH" > ~/.docker/config.json ;
|
2017-03-07 16:28:23 +04:00
|
|
|
- docker tag "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF}"
|
2017-03-05 05:15:14 +04:00
|
|
|
"${public_docker_image}:${CI_BUILD_REF_NAME}"
|
|
|
|
- docker push "${public_docker_image}:${CI_BUILD_REF_NAME}"
|
|
|
|
- docker rmi "${public_docker_image}:${CI_BUILD_REF_NAME}"
|
2017-01-22 04:59:18 +04:00
|
|
|
|
|
|
|
publish:github:
|
|
|
|
image: ocaml/opam
|
|
|
|
stage: publish
|
2016-09-08 21:13:10 +04:00
|
|
|
tags:
|
|
|
|
- tezos_builder
|
|
|
|
only:
|
|
|
|
- master@tezos/tezos
|
|
|
|
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
|
|
|
|
- git filter-branch --prune-empty --index-filter
|
|
|
|
'git rm -r --cached --ignore-unmatch
|
|
|
|
.gitlab-ci.yml
|
|
|
|
"docs/proof of stake.md"
|
|
|
|
src/client/embedded/bootstrap/mining/'
|
|
|
|
--env-filter
|
2016-09-21 17:36:45 +04:00
|
|
|
'if [ $GIT_COMMIT != "f42e9d12ac75d2876a4cf600d44976b7090d4533" ] ; then
|
|
|
|
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" ;
|
|
|
|
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" ;
|
|
|
|
export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" ;
|
|
|
|
export GIT_AUTHOR_NAME="Dynamic Ledger Solutions, Inc." ;
|
|
|
|
export GIT_AUTHOR_EMAIL="contact@tezos.com" ;
|
|
|
|
fi'
|
2016-09-08 21:13:10 +04:00
|
|
|
HEAD
|
2017-01-23 14:46:56 +04:00
|
|
|
- git push git@github.com:tezos/tezos.git -f HEAD:master
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
cleanup:
|
|
|
|
stage: cleanup
|
2017-03-05 05:15:14 +04:00
|
|
|
image: docker:latest
|
2016-09-08 21:13:10 +04:00
|
|
|
tags:
|
|
|
|
- docker_builder
|
|
|
|
script:
|
2017-03-05 05:15:14 +04:00
|
|
|
- docker tag "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF}_build_deps"
|
|
|
|
"${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_NAME}_build_deps"
|
|
|
|
- docker rmi "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF}_build_deps"
|
2017-03-14 12:18:35 +04:00
|
|
|
when: always
|
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
cleanup:public:
|
|
|
|
stage: cleanup
|
|
|
|
image: docker:latest
|
|
|
|
tags:
|
|
|
|
- public_docker_builder
|
|
|
|
only:
|
|
|
|
- master@tezos/tezos
|
|
|
|
- alphanet@tezos/tezos
|
|
|
|
script:
|
2017-03-05 05:15:14 +04:00
|
|
|
- docker rmi "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF}"
|
2016-09-08 21:13:10 +04:00
|
|
|
when: always
|
2017-01-26 12:58:21 +04:00
|
|
|
allow_failure: true
|