]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
bird: job runtest was divided into the two different jobs (build and test)
authorMatous Holinka <matous.holinka@nic.cz>
Thu, 7 Nov 2019 13:46:17 +0000 (14:46 +0100)
committerMatous Holinka <matous.holinka@nic.cz>
Thu, 7 Nov 2019 13:46:17 +0000 (14:46 +0100)
.gitlab-ci.yml

index b3005b3be17094777a14749268232454c6ea906c..e4dfc566811752569b58f4f162c5057dbf66fee3 100644 (file)
@@ -4,6 +4,7 @@ variables:
   GIT_STRATEGY: fetch
   DOCKER_CMD: docker --config="$HOME/.docker/$CI_JOB_ID/"
   IMG_BASE: registry.labs.nic.cz/labs/bird
+  GIT_STRATEGY: fetch
 
 stages:
   # - image
@@ -296,28 +297,19 @@ stages:
 build-birdlab:
   <<: *build_job
   tags:
-  - birdlab
-  - amd64
+    - birdlab
+    - amd64
   script:
-    - whoami
+    - git clean
+    - git fetch https://gitlab.labs.nic.cz/labs/bird-tools --branch oz-test-base
+    - cd bird
+    - mv bird /etc/gitlab-runner/bird && mv birdc /etc/gitlab-runner/birdc
+    - mv ../bird-tools /etc/gitlab-runner/bird-tools
 
-cloning_netlab:
+running_test:
   stage: test
   tags:
     - birdlab
   script:
-    - cd ../
-    - sudo rm -r bird-tools
-    - cd bird
-    - autoreconf
-    - ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
-    - MAKE=make
-    - which gmake 2>/dev/null >/dev/null && MAKE=gmake
-    - $MAKE
-    - $MAKE check
-    - cd ../
-    - git clone https://gitlab.labs.nic.cz/labs/bird-tools --branch oz-test-base
-    - cd bird
-    - mv bird birdc ../bird-tools/netlab-int/common
-    - cd ../bird-tools/netlab-int
-    - sudo ./runtest -m save cf-ospf
\ No newline at end of file
+    - cd /etc/gitlab-runner/bird-tools
+    - sudo ./runtest -m save cf-ospf