gitlab-ci: adding basic compilation tests for x86_64, ARMv8 and ARMv7
authorReto Achermann <reto.achermann@inf.ethz.ch>
Tue, 7 May 2019 14:56:26 +0000 (16:56 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Tue, 7 May 2019 16:01:16 +0000 (18:01 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

.gitlab-ci.yml
platforms/Hakefile

index c21f757..230466e 100644 (file)
@@ -11,7 +11,7 @@
 stages:
   - commithooks
   - hake
-  # - build
+  - build
   # - tests
 
 
@@ -32,18 +32,49 @@ hake-tool:
   script:
     - "mkdir build; (cd build && ../hake/hake.sh --no-hake -s ../ -a x86_64)"
 
+hake-files:
+  stage: hake
+  image: achreto/barrelfish-ci
+  script:
+    - "mkdir build; (cd build && ../hake/hake.sh --no-deps -s ../ -a x86_64)"    
+
 ##############################################################################
 
-# x86:hake:
-#   stage: hake
-#   image: achreto/barrelfish-ci
-#   artifacts:
-#     paths:
-#       - build-x86
-#     when: on_success
-#   script:
-#     - "mkdir build-x86; (cd build-x86 && ../hake/hake.sh -s ../ -a x86_64)"
-    
+
+build-x86:
+  stage: build
+  image: achreto/barrelfish-ci
+  # artifacts:
+  #   paths:
+  #     - build-x86
+  #   when: on_success
+  script:
+    - "mkdir build-x86; 
+       (cd build-x86 && ../hake/hake.sh -s ../ -a x86_64 && make X86_64_Basic)"
+
+
+build-armv7:
+  stage: build
+  image: achreto/barrelfish-ci
+  # artifacts:
+  #   paths:
+  #     - build-x86
+  #   when: on_success
+  script:
+    - "mkdir build-armv7; 
+       (cd build-armv7 && ../hake/hake.sh -s ../ -a armv7 && make ARMV7_Basic)"
+
+
+build-armv8:
+  stage: build
+  image: achreto/barrelfish-ci
+  # artifacts:
+  #   paths:
+  #     - build-x86
+  #   when: on_success
+  script:
+    - "mkdir build-armv8; 
+       (cd build-armv8 && ../hake/hake.sh -s ../ -a armv8 && make ARMV8_Basic)"           
 
 # x86:build:
 #   stage: build
index 5a5f402..78744d1 100644 (file)
@@ -442,6 +442,18 @@ let bin_rcce_lu = [ "/sbin/" ++ f | f <- [
        [ ("",       f) | f <- modules_generic])
       "Xeon Phi build with benchmarks and test suites",
 
+    platform "ARMV7_Basic" [ "armv7" ]
+      ([ ("armv7", f) | f <- pandaModules ]
+       ++
+       [ ("",       f) | f <- modules_generic])
+      "Basic ARMv8 build",
+
+    platform "ARMV8_Basic" [ "armv8" ]
+      ([ ("armv8", f) | f <- armv8_modules ]
+       ++
+       [ ("",       f) | f <- modules_generic])
+      "Basic ARMv8 build",
+
     platform "FVP" [ "armv8" ]
       ([ ("armv8", "/sbin/cpu_a57_fvp"), ("armv8", "/sbin/boot_armv8_generic")  ]
        ++