about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-11-09T14·30+0000
committerVincent Ambo <github@tazj.in>2019-11-09T15·35+0000
commit9a8abeff977cfb488073c1f338df0821021d41ab (patch)
tree639dfca5606dbb0422dde1b82f30ca54e23374b0
parent1d6898a7cc3c4b4d46993e0076302dffad19f46f (diff)
feat(build): Integration test on both CPU architectures
-rw-r--r--tools/nixery/.travis.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/tools/nixery/.travis.yml b/tools/nixery/.travis.yml
index 02700c319686..72b2a657b34b 100644
--- a/tools/nixery/.travis.yml
+++ b/tools/nixery/.travis.yml
@@ -55,4 +55,25 @@ script:
       echo -n "."
       sleep 1
     done
-  - docker run --rm localhost:8080/hello hello
+
+  # Pull and run an image of the current CPU architecture
+  - |
+    case $(uname -m) in
+      x86_64)
+        docker run --rm localhost:8080/hello hello
+        ;;
+      aarch64)
+        docker run --rm localhost:8080/arm64/hello hello
+        ;;
+    esac
+
+  # Pull an image of the opposite CPU architecture (but without running it)
+  - |
+    case $(uname -m) in
+    x86_64)
+      docker pull localhost:8080/arm64/hello
+      ;;
+    aarch64)
+      docker pull localhost:8080/hello
+      ;;
+    esac