]> Untitled Git - lemmy.git/commitdiff
Temporarily disable arm tests (#1895)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 11 Nov 2021 19:49:48 +0000 (14:49 -0500)
committerGitHub <noreply@github.com>
Thu, 11 Nov 2021 19:49:48 +0000 (14:49 -0500)
* Temporarily disable arm tests

* Disable cargo build

.drone.yml

index 87f123b1bf73a344a3f45a105127ff60a931c462..382dfb924962f6ce6a4b7c4165c0f1f9d098cb5f 100644 (file)
@@ -128,8 +128,6 @@ platform:
 steps:
 
   - name: prepare repo
-    # Not sure why, but rust ARM64 builds are failing on drone for rust:1.54 and later:
-    # https://discourse.drone.io/t/arm-build-stalls-out-on-cloud-drone-io-ram-issue/9701
     image: rust:1.56-slim
     user: root
     commands:
@@ -138,41 +136,44 @@ steps:
       - apt install --no-install-recommends --yes git
       - git fetch --tags
 
-  - name: cargo test
-    image: rust:1.56-slim
-    environment:
-      LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
-      LEMMY_CONFIG_LOCATION: ../../config/config.hjson
-      RUST_BACKTRACE: 1
-      RUST_TEST_THREADS: 1
-    commands:
-      - apt-get update
-      - apt-get -y install --no-install-recommends postgresql-client libssl-dev pkg-config libpq-dev
-      - cargo test --workspace --no-fail-fast
-      - cargo build
-
+  # TODO temporarily disable arm tests
+  # - name: cargo test
+  #   image: rust:1.56-slim
+  #   environment:
+  #     LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
+  #     LEMMY_CONFIG_LOCATION: ../../config/config.hjson
+  #     RUST_BACKTRACE: 1
+  #     RUST_TEST_THREADS: 1
+  #   commands:
+  #     - apt-get update
+  #     - apt-get -y install --no-install-recommends postgresql-client libssl-dev pkg-config libpq-dev
+  #     - cargo test --workspace --no-fail-fast
+  #     - cargo build
+
+  # TODO temporarily disable arm tests
   # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
-  - name: cargo build
-    image: rust:1.56-slim
-    commands:
-      - apt-get update
-      - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
-      - cargo build
-      - mv target/debug/lemmy_server target/lemmy_server
-
-  - name: run federation tests
-    image: node:16-slim
-    environment:
-      LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
-      DO_WRITE_HOSTS_FILE: 1
-    commands:
-      - mkdir -p /usr/share/man/man1 /usr/share/man/man7
-      - apt-get update
-      - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
-      - bash api_tests/prepare-drone-federation-test.sh
-      - cd api_tests/
-      - yarn
-      - yarn api-test
+  # - name: cargo build
+  #   image: rust:1.56-slim
+  #   commands:
+  #     - apt-get update
+  #     - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
+  #     - cargo build
+  #     - mv target/debug/lemmy_server target/lemmy_server
+
+  # TODO temporarily disable arm tests
+  # - name: run federation tests
+  #   image: node:16-slim
+  #   environment:
+  #     LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
+  #     DO_WRITE_HOSTS_FILE: 1
+  #   commands:
+  #     - mkdir -p /usr/share/man/man1 /usr/share/man/man7
+  #     - apt-get update
+  #     - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
+  #     - bash api_tests/prepare-drone-federation-test.sh
+  #     - cd api_tests/
+  #     - yarn
+  #     - yarn api-test
 
   - name: publish release docker image
     image: plugins/docker
@@ -206,9 +207,10 @@ steps:
       ref:
         - refs/tags/*
 
-services:
-  - name: database
-    image: postgres:12-alpine
-    environment:
-      POSTGRES_USER: lemmy
-      POSTGRES_PASSWORD: password
+# TODO temporarily disable arm tests
+# services:
+#   - name: database
+#     image: postgres:12-alpine
+#     environment:
+#       POSTGRES_USER: lemmy
+#       POSTGRES_PASSWORD: password