Temporarily disable arm tests

disable_arm_tests
Dessalines 2021-11-11 09:25:08 -05:00
parent dbc92d6ee0
commit 5c851da36c
1 changed files with 34 additions and 31 deletions

View File

@ -138,18 +138,19 @@ 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
# Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
- name: cargo build
@ -160,19 +161,20 @@ steps:
- 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
# 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 +208,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