mirror of https://github.com/LemmyNet/lemmy.git
Temporarily disable arm tests (#1895)
* Temporarily disable arm tests * Disable cargo buildsetup_mastodon_local
parent
1b9414f292
commit
3bd827c73a
82
.drone.yml
82
.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: 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
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue