From 3bd827c73aec5536b567ee26ffc8bc0392943ae5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 11 Nov 2021 14:49:48 -0500 Subject: [PATCH] Temporarily disable arm tests (#1895) * Temporarily disable arm tests * Disable cargo build --- .drone.yml | 86 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 44 insertions(+), 42 deletions(-) diff --git a/.drone.yml b/.drone.yml index 87f123b1..382dfb92 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 -- 2.44.1