mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-09 17:55:10 +00:00
Temporarily disable arm tests (#1895)
* Temporarily disable arm tests * Disable cargo build
This commit is contained in:
parent
1b9414f292
commit
3bd827c73a
82
.drone.yml
82
.drone.yml
|
@ -128,8 +128,6 @@ platform:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: prepare repo
|
- 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
|
image: rust:1.56-slim
|
||||||
user: root
|
user: root
|
||||||
commands:
|
commands:
|
||||||
|
@ -138,41 +136,44 @@ steps:
|
||||||
- apt install --no-install-recommends --yes git
|
- apt install --no-install-recommends --yes git
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
|
||||||
- name: cargo test
|
# TODO temporarily disable arm tests
|
||||||
image: rust:1.56-slim
|
# - name: cargo test
|
||||||
environment:
|
# image: rust:1.56-slim
|
||||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
# environment:
|
||||||
LEMMY_CONFIG_LOCATION: ../../config/config.hjson
|
# LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
RUST_BACKTRACE: 1
|
# LEMMY_CONFIG_LOCATION: ../../config/config.hjson
|
||||||
RUST_TEST_THREADS: 1
|
# RUST_BACKTRACE: 1
|
||||||
commands:
|
# RUST_TEST_THREADS: 1
|
||||||
- apt-get update
|
# commands:
|
||||||
- apt-get -y install --no-install-recommends postgresql-client libssl-dev pkg-config libpq-dev
|
# - apt-get update
|
||||||
- cargo test --workspace --no-fail-fast
|
# - apt-get -y install --no-install-recommends postgresql-client libssl-dev pkg-config libpq-dev
|
||||||
- cargo build
|
# - 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.
|
# Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM.
|
||||||
- name: cargo build
|
# - name: cargo build
|
||||||
image: rust:1.56-slim
|
# image: rust:1.56-slim
|
||||||
commands:
|
# commands:
|
||||||
- apt-get update
|
# - apt-get update
|
||||||
- apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
|
# - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev
|
||||||
- cargo build
|
# - cargo build
|
||||||
- mv target/debug/lemmy_server target/lemmy_server
|
# - mv target/debug/lemmy_server target/lemmy_server
|
||||||
|
|
||||||
- name: run federation tests
|
# TODO temporarily disable arm tests
|
||||||
image: node:16-slim
|
# - name: run federation tests
|
||||||
environment:
|
# image: node:16-slim
|
||||||
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
|
# environment:
|
||||||
DO_WRITE_HOSTS_FILE: 1
|
# LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
|
||||||
commands:
|
# DO_WRITE_HOSTS_FILE: 1
|
||||||
- mkdir -p /usr/share/man/man1 /usr/share/man/man7
|
# commands:
|
||||||
- apt-get update
|
# - mkdir -p /usr/share/man/man1 /usr/share/man/man7
|
||||||
- apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
|
# - apt-get update
|
||||||
- bash api_tests/prepare-drone-federation-test.sh
|
# - apt-get -y install --no-install-recommends bash curl libssl-dev pkg-config libpq-dev postgresql-client libc6-dev
|
||||||
- cd api_tests/
|
# - bash api_tests/prepare-drone-federation-test.sh
|
||||||
- yarn
|
# - cd api_tests/
|
||||||
- yarn api-test
|
# - yarn
|
||||||
|
# - yarn api-test
|
||||||
|
|
||||||
- name: publish release docker image
|
- name: publish release docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -206,9 +207,10 @@ steps:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
services:
|
# TODO temporarily disable arm tests
|
||||||
- name: database
|
# services:
|
||||||
image: postgres:12-alpine
|
# - name: database
|
||||||
environment:
|
# image: postgres:12-alpine
|
||||||
POSTGRES_USER: lemmy
|
# environment:
|
||||||
POSTGRES_PASSWORD: password
|
# POSTGRES_USER: lemmy
|
||||||
|
# POSTGRES_PASSWORD: password
|
||||||
|
|
Loading…
Reference in a new issue