From 442c8c15e04a659b587e4a919994530ff1ff1632 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Fri, 26 Apr 2019 15:33:25 +0200 Subject: [PATCH] ci: add prebuild stage --- .gitlab-ci.yml | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index efccbd7acd..8b4f848619 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,7 @@ variables: stages: - environment + - prebuild - build - test @@ -37,6 +38,23 @@ image: registry.corp.sldev.cz/trezor/trezor-firmware/environment before_script: - pipenv install +style: + stage: prebuild + script: + - pipenv run make style_check + - cd core && pipenv run make templates_check # TODO + +common: + stage: prebuild + script: + - cd common + - pipenv run jsonlint defs/*.json + - pipenv run jsonlint defs/*/*.json + - pipenv run python tools/cointool.py check + - pipenv run python tools/support.py check --ignore-missing + - pipenv run python protob/check.py + - pipenv run python protob/graph.py protob/*.proto # TODO: artifacts? + build core firmware: stage: build script: @@ -75,13 +93,6 @@ build legacy: - pipenv run make -C bootloader - pipenv run make -C demo -test style: - stage: test - dependencies: [] # no need to download artifacts - script: - - pipenv run make style_check - - cd core && pipenv run make templates_check # TODO - test core unix unit: stage: test script: @@ -100,18 +111,6 @@ test core unix monero: - cd core - pipenv run make test_emu_monero -test common: - stage: test - dependencies: [] # no need to download artifacts - script: - - cd common - - pipenv run jsonlint defs/*.json - - pipenv run jsonlint defs/*/*.json - - pipenv run python tools/cointool.py check - - pipenv run python tools/support.py check --ignore-missing - - pipenv run python protob/check.py - - pipenv run python protob/graph.py protob/*.proto # TODO: artifacts? - test crypto: stage: test dependencies: [] # no need to download artifacts