]> Untitled Git - lemmy.git/commitdiff
faster release build
authorFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 16:01:05 +0000 (17:01 +0100)
committerFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 16:01:05 +0000 (17:01 +0100)
.drone.yml
api_tests/prepare-drone-federation-test.sh

index 3d8358b10b3c0ce8fafe192d53bd81bf09a78f6d..6afb2ffc22db50195edb85b8e08d64e6417b1fb7 100644 (file)
@@ -13,16 +13,28 @@ steps:
     image: rustdocker/rust:nightly
     commands:
       - /root/.cargo/bin/cargo fmt -- --check
+    # disable this
+    when:
+      ref:
+        - refs/tags/*
 
   - name: cargo check
     image: ekidd/rust-musl-builder:1.47.0
     commands:
       - cargo check --workspace --all-targets
+    # disable this
+    when:
+      ref:
+        - refs/tags/*
 
   - name: cargo clippy
     image: ekidd/rust-musl-builder:1.47.0
     commands:
       - cargo clippy
+    # disable this
+    when:
+      ref:
+        - refs/tags/*
 
   - name: check documentation build
     image: ekidd/rust-musl-builder:1.47.0
@@ -40,9 +52,15 @@ steps:
       - sudo apt-get update
       - sudo apt-get -y install --no-install-recommends espeak postgresql-client
       - cargo test --workspace --no-fail-fast
+    # disable this
+    when:
+      ref:
+        - refs/tags/*
 
   - name: cargo build
     image: ekidd/rust-musl-builder:1.47.0
+    environment:
+      -  RUSTFLAGS: "-C opt-level=0 -C lto=off"
     commands:
       - cargo build --release
 
index 7a2c93221b1be340d3dbeab4e889daa441ecf9f4..e4a30d699871a5af20ec4ada1f589eb711643ab0 100755 (executable)
@@ -11,6 +11,8 @@ export LEMMY_CAPTCHA__ENABLED=false
 export RUST_BACKTRACE=1
 export RUST_LOG=debug
 
+ls -la target/release/lemmy_server
+
 echo "start alpha"
 LEMMY_HOSTNAME=lemmy-alpha:8541 \
   LEMMY_PORT=8541 \