From c939954f84592cd2bc6e6a377a9dd4437fad8215 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 10 Dec 2020 17:46:36 +0100 Subject: [PATCH] use node docker image --- .drone.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index e68942f7..44569920 100644 --- a/.drone.yml +++ b/.drone.yml @@ -67,9 +67,18 @@ steps: ref: - refs/tags/* - - name: run federation tests + - name: cargo build image: ekidd/rust-musl-builder:experimental-stable user: root + volumes: + - name: dieselcli + path: /dieselcli + commands: + - cargo build + + - name: run federation tests + image: node:15-alpine3.12 + user: root environment: LEMMY_JWT_SECRET: changeme LEMMY_FEDERATION__ENABLED: true @@ -85,15 +94,14 @@ steps: LEMMY_FEDERATION__ALLOWED_INSTANCES: lemmy-beta,lemmy-gamma,lemmy-delta,lemmy-epsilon LEMMY_SETUP__ADMIN_USERNAME: lemmy_alpha LEMMY_SETUP__SITE_NAME: lemmy-alpha + volumes: + - name: dieselcli + path: /dieselcli commands: - - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - - - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list - - sudo apt-get update - - apt-get -y install --no-install-recommends yarn nodejs - mkdir -p volumes/pictrs_{alpha,beta,gamma,delta,epsilon} - chown -R 991:991 volumes/pictrs_{alpha,beta,gamma,delta,epsilon} - - LEMMY_PORT=8541 cargo run & - - LEMMY_PORT=8551 cargo run & + - LEMMY_PORT=8541 ./target/debug/lemmy_server & + - LEMMY_PORT=8551 ./target/debug/lemmy_server & - cd api_tests/ - yarn - yarn api-test -- 2.44.1