use node docker image

This commit is contained in:
Felix Ableitner 2020-12-10 17:46:36 +01:00
parent 56bea54536
commit c939954f84

View file

@ -67,9 +67,18 @@ steps:
ref: ref:
- refs/tags/* - refs/tags/*
- name: run federation tests - name: cargo build
image: ekidd/rust-musl-builder:experimental-stable image: ekidd/rust-musl-builder:experimental-stable
user: root user: root
volumes:
- name: dieselcli
path: /dieselcli
commands:
- cargo build
- name: run federation tests
image: node:15-alpine3.12
user: root
environment: environment:
LEMMY_JWT_SECRET: changeme LEMMY_JWT_SECRET: changeme
LEMMY_FEDERATION__ENABLED: true LEMMY_FEDERATION__ENABLED: true
@ -85,15 +94,14 @@ steps:
LEMMY_FEDERATION__ALLOWED_INSTANCES: lemmy-beta,lemmy-gamma,lemmy-delta,lemmy-epsilon LEMMY_FEDERATION__ALLOWED_INSTANCES: lemmy-beta,lemmy-gamma,lemmy-delta,lemmy-epsilon
LEMMY_SETUP__ADMIN_USERNAME: lemmy_alpha LEMMY_SETUP__ADMIN_USERNAME: lemmy_alpha
LEMMY_SETUP__SITE_NAME: lemmy-alpha LEMMY_SETUP__SITE_NAME: lemmy-alpha
volumes:
- name: dieselcli
path: /dieselcli
commands: 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} - mkdir -p volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
- chown -R 991:991 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=8541 ./target/debug/lemmy_server &
- LEMMY_PORT=8551 cargo run & - LEMMY_PORT=8551 ./target/debug/lemmy_server &
- cd api_tests/ - cd api_tests/
- yarn - yarn
- yarn api-test - yarn api-test