Put code-checkout into build stage
This commit is contained in:
parent
3f449c53bc
commit
f703b4fd7b
1 changed files with 1 additions and 4 deletions
|
|
@ -6,12 +6,11 @@ include:
|
||||||
- template: Secret-Detection.gitlab-ci.yml
|
- template: Secret-Detection.gitlab-ci.yml
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- code-checkout
|
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
|
||||||
code-checkout:
|
code-checkout:
|
||||||
stage: code-checkout
|
stage: build
|
||||||
script:
|
script:
|
||||||
- rm -rf .git/modules/docs .git/modules/libraries/fc ./docs ./libraries/fc
|
- rm -rf .git/modules/docs .git/modules/libraries/fc ./docs ./libraries/fc
|
||||||
- git submodule sync
|
- git submodule sync
|
||||||
|
|
@ -24,7 +23,6 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
needs: [code-checkout]
|
needs: [code-checkout]
|
||||||
script:
|
script:
|
||||||
- cd build
|
|
||||||
- cmake -DCMAKE_BUILD_TYPE=Release ..
|
- cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
@ -38,7 +36,6 @@ build-testnet:
|
||||||
stage: build
|
stage: build
|
||||||
needs: [code-checkout]
|
needs: [code-checkout]
|
||||||
script:
|
script:
|
||||||
- cd build
|
|
||||||
- cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release -DBUILD_PEERPLAYS_TESTNET=1 ..
|
- cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release -DBUILD_PEERPLAYS_TESTNET=1 ..
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue