Commit Graph

144 Commits (cb44b1471705de503e609fbd835fca2a77cce2db)

Author SHA1 Message Date
Nutomic cb44b14717
WIP: Email localization (fixes #500) (#2053)
* Allow email localization (fixes #500)

* add PersonAggregates::default()

* add lemmy-translations submodule

* fix gitmodules
2 years ago
Dessalines ad76c75821
Trying to add docker:latest. Fixes #1959 (#1960)
* Trying to add docker:latest. Fixes #1959

* Version 0.14.4-rc.3

* Trying to fix clippy on crate build

* Version 0.14.4-rc.4
2 years ago
Dessalines 3bd827c73a
Temporarily disable arm tests (#1895)
* Temporarily disable arm tests

* Disable cargo build
3 years ago
Dessalines 5b3be5c102 Updating rust musl images 3 years ago
Dessalines 44b5fe0631
Stop using lemmy-ui:dev images (#1880)
* Stop using lemmy-ui:dev images

* Dont publish dev docker images with drone.
3 years ago
Nutomic 7bfe59a89f
Format config/defaults.hjson before committing (#1860) 3 years ago
Dessalines 23731cd49c
Trying out rust-musl-builder for cargo publish (#1856)
* Trying out rust-musl-builder for cargo publish

* Version 0.13.5-rc.1

* Try rust:nightly

* Version 0.13.5-rc.2

* Try rust slim

* Version 0.13.5-rc.3

* Try rust 1.51

* Version 0.13.5-rc.4

* Trying another nightly

* Version 0.13.5-rc.5

* Trying another fix

* Version 0.13.5-rc.6
3 years ago
Nutomic 21304e6751
Create a custom pre-commit hook, generates config/defaults.hjson (#1857)
* Create a custom pre-commit hook, generates config/defaults.hjson (fixes #1836)

* invalid defaults file

* Revert "invalid defaults file"

This reverts commit 76d2c303e2.
3 years ago
Dessalines c28c1b4bb3
Trying to fix arm builds. (#1761)
* Trying to fix arm builds.

* Adding comment
3 years ago
Dessalines af225a42d0
Fix prod deploy script and clippy (#1724)
* Updating lemmy-js-client.

* Fix prod deploy script and clippy

* Try using buster.

* Using more generic and updated images.

* again.

* again.

* Try alternate env

* again.

* again.

* Version 0.11.4-rc.24

* again.

* Better old_tag

* Version 0.11.4-rc.27

* Updating cargo.lock

* Trying to run a cargo check to update the lock

* Version 0.11.4-rc.28
3 years ago
Felix Ableitner a44b5c9c36 publish to crates.io with normal release script 3 years ago
Dessalines f67b0e9ff8
Updating to rust 1.51.0 (#1598) 3 years ago
Nutomic dc1a0dcd5e
Fetch git tags manually in CI (#1590)
* Fetch git tags manually in CI

* Dont need espeak in CI anymore
3 years ago
Nutomic b8a6592369
Drone release main (ref #1556) (#1557)
* publish docker images from main

* try with separate step

* redo, lots of boilerplate

* try to fix syntax

* unique step names

* fix docker tags, remove cargo-chef

* only build dev image on main branch

* use `ref` for condition, as `branch` uses the target branch for PRs

* consistent indents

* fix tag

* use lemmy-ui:dev image for `docker/dev` and `docker/federation`
3 years ago
Nutomic 74a63804dc
Fix test failure due to config loading error (#1547)
* Crash if config fails to load

* fix previous commit

* Fix test failure due to config loading error

* Adding test fix to drone.

* Logging line.

* Trying to fix drone 2

* Fixing deploy script.

Co-authored-by: Dessalines <tyhou13@gmx.com>
3 years ago
Dessalines ae635c752a Try to remove cargo home changing to fix release. 3 years ago
Dessalines c88722983e Merge branch 'main' into split_user_table 3 years ago
Nutomic 33a326854a
Set CARGO_HOME for CI so deps arent redownloaded (#1497)
* Set CARGO_HOME for CI so deps arent redownloaded

* run find on x86

* fix path

* cleanup

* try again

* use mv
3 years ago
Dessalines 7d04f371a5 fixing tests 3 3 years ago
Felix Ableitner 7f56281c26 Forbid usage of unwrap 3 years ago
Felix Ableitner 66946117e1 Upgrade Rust version 3 years ago
Andrew Yoon 600ae662a5 Support plain `cargo test` and disable unused doctests for speed
Since DB tests execute diesel migrations automatically, concurrent
execution causes flaky failures from simultaneous migrations. This can
be worked around using `cargo test --workspace -- --test-threads=1`,
which is what the CI config does, but this is not intuitive for
newcomer developers and unnecessarily slows down the test suite for
the majority of tests which are safe to run concurrently. This fixes
this issue by integrating with the small test crate `serial_test` and
using it to explicitly mark DB tests to run sequentially while
allowing all other tests to run in parallel.

Additionally, this greatly improves the speed of `cargo test` by
disabling doc-tests in all crates, since these are aren't currently
used and cargo's doc-test pass, even when no doc-tests exist, has
significant overhead. On my machine, this change significantly
improves test suite times by about 85%, making it much more practical
to develop with tools like `cargo watch` auto-running tests.
3 years ago
Dessalines d5d99fa3b9
Moving docs to join.lemmy.ml . Fixes #1396 (#1410)
* Moving docs to join.lemmy.ml . Fixes #1396

* Removing submodule fetch from drone.
3 years ago
Dessalines 97617d699d
Docker manifest arm amd64 deploy (#1367)
* A first try at docker manifest. 1.

* Fixing api version location

* Version 0.9.0-rc.13

* Test docker.

* Test docker 2.

* Test docker 3.

* Test docker 4.

* Test docker 5.

* Test docker 6.

* Test docker 7.

* Test docker 8.

* Test docker 9.

* Test docker 10.

* Test docker 11.

* Test docker 12.

* Version 0.9.0-rc.14

* Test docker 13.

* Test docker 14.

* Version 0.9.0-rc.15

* Test docker 15.

* Version 0.9.0-rc.16

* Test docker 16.

* Version 0.9.0-rc.17
3 years ago
Dessalines 672d4507b2 Removing check documentation build from drone, now that's in lemmy-docs. 3 years ago
Dessalines 8cfee9ca7d Trying to fix arm build. 3 years ago
Dessalines f0d928a433 Removing tag generation from drone. 3 years ago
Felix Ableitner f06b71d961 Add drone CI for arm 3 years ago
Dessalines d54be4ed7f Trying autotag 3 years ago
Dessalines c6357f3c86
Deletion on fetch (#1345)
* Delete local object on fetch when receiving HTTP 410, split fetcher (fixes #1256)

* Removing submodules

* Trying to re-init submodule

* Trying to re-init submodule 2

* Trying to re-init submodule 3

* Logging line.

* Removing submodules

* Adding again.

* Adding again 2.

* Adding again 3.

* Adding again 4.

* Adding again 5.

* Adding again 6.

* Adding again 7.

* Adding again 8.

* Adding again 9.

* Add more clippy lints, remove dbg!() statement

* Adding again 10.

* Adding again 11.

* Adding again 12.

Co-authored-by: Felix Ableitner <me@nutomic.com>
3 years ago
Dessalines a56977f4c5 Trying to get mdbooks to build. 3 years ago
Dessalines 9ab3a9d072 Add clippy check tests to drone. 3 years ago
Felix Ableitner 5a16d43fef Run cargo clippy in CI on whole workspace 3 years ago
Dessalines 8e1f41f1e4 Removing cargo check from drone, clippy already runs check. 3 years ago
Dessalines 04ce64e9b6 Adding to clippy 3 years ago
Dessalines 2aa8de87b2 Trying other drone checks. 3 years ago
Dessalines 5c266302c5 Adding unfollows. 3 years ago
Dessalines 6cc148f6a6 Trying again. 3 years ago
Dessalines 1607930d07 Trying again. 3 years ago
Dessalines 1a4e2f4770 Trying again. 3 years ago
Felix Ableitner e492cce206 Allow running docker-less federation tests locally 3 years ago
Felix Ableitner d5955b60c0 silence lemmy output in federation logs 3 years ago
Felix Ableitner a455e8c0ab add pictrs and iframely, read docker hub login from secrets 3 years ago
Felix Ableitner 30a1a69850 setup db 3 years ago
Felix Ableitner e7a5eff061 try debug build again 3 years ago
Felix Ableitner 446ae301f8 syntax 3 years ago
Felix Ableitner 2dd3eee0dd fix paths, try debug 3 years ago
Felix Ableitner 9c7f2cb0c3 fix bin path 3 years ago
Felix Ableitner b61bfcefa7 find the binary 3 years ago
Felix Ableitner 9cb7680211 fix release build? 3 years ago