mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
CI: fix test collisions between branches
The build-netlab job was side-effecting the test-* jobs, and if for some reason Gitlab scheduled build-netlab before other pipeline's test-* jobs finished, these jobs got a wrong binary, possibly failing. Solved by using explicit artifacts, which is not the fastest way to do this (we could keep the binaries named there) but it's the gitlab-right way to do this.
This commit is contained in:
parent
96dc63d602
commit
27ddbb983f
@ -411,19 +411,22 @@ pkg-opensuse-15.3-amd64:
|
|||||||
|
|
||||||
build-netlab:
|
build-netlab:
|
||||||
stage: build
|
stage: build
|
||||||
|
variables:
|
||||||
|
BDIR: build-netlab
|
||||||
tags:
|
tags:
|
||||||
- netlab
|
- netlab
|
||||||
- amd64
|
- amd64
|
||||||
script:
|
script:
|
||||||
- DIR=$(pwd)
|
|
||||||
- autoreconf
|
- autoreconf
|
||||||
- ./configure
|
- mkdir $BDIR
|
||||||
|
- cd $BDIR
|
||||||
|
- ../configure
|
||||||
- make
|
- make
|
||||||
- cd $TOOLS_DIR
|
artifacts:
|
||||||
- sudo git clean -fx
|
paths:
|
||||||
- git pull --ff-only
|
- $BDIR/bird
|
||||||
- mv $DIR/bird $DIR/birdc netlab/common
|
- $BDIR/birdc
|
||||||
- ln -s $STAYRTR_BINARY netlab/common/stayrtr
|
expire_in: 2 hours
|
||||||
|
|
||||||
.test: &test-base
|
.test: &test-base
|
||||||
stage: test
|
stage: test
|
||||||
@ -432,7 +435,13 @@ build-netlab:
|
|||||||
- netlab
|
- netlab
|
||||||
- amd64
|
- amd64
|
||||||
script:
|
script:
|
||||||
- cd $TOOLS_DIR/netlab
|
- DIR=$(pwd)
|
||||||
|
- cd $TOOLS_DIR
|
||||||
|
- sudo git clean -fx
|
||||||
|
- git pull --ff-only
|
||||||
|
- mv $DIR/build-netlab/* netlab/common/
|
||||||
|
- ln -s $STAYRTR_BINARY netlab/common/stayrtr
|
||||||
|
- cd netlab
|
||||||
- sudo ./stop
|
- sudo ./stop
|
||||||
- sudo ./runtest -s v2 -m check $TEST_NAME
|
- sudo ./runtest -s v2 -m check $TEST_NAME
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user