Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d7a867bd1 | |||
| c5fa90176c | |||
| 55ccd1b4e4 |
@@ -19,7 +19,7 @@ executors:
|
||||
working_directory: ~/projects/Plume
|
||||
environment:
|
||||
RUST_TEST_THREADS: 1
|
||||
FEATURES: <<#parameters.postgres>>postgres<</ parameters.postgres>><<^parameters.postgres>>sqlite<</parameters.postgres>>
|
||||
FEATURES: <<#parameters.postgres>>postgres<</ parameters.postgres>><<^parameters.postgres>>sqlite<</parameters.postgres>>,ci
|
||||
DATABASE_URL: <<#parameters.postgres>>postgres://postgres@localhost/plume<</parameters.postgres>><<^parameters.postgres>>plume.sqlite<</parameters.postgres>>
|
||||
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ postgres = ["plume-models/postgres", "diesel/postgres"]
|
||||
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
|
||||
debug-mailer = []
|
||||
test = []
|
||||
ci = ["plume-models/ci", "plume-api/ci", "plume-common/ci"]
|
||||
|
||||
[workspace]
|
||||
members = ["plume-api", "plume-cli", "plume-models", "plume-common", "plume-front", "plume-macro"]
|
||||
|
||||
@@ -7,3 +7,6 @@ edition = "2018"
|
||||
[dependencies]
|
||||
serde = "1.0"
|
||||
serde_derive = "1.0"
|
||||
|
||||
[features]
|
||||
ci = []
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
|
||||
@@ -23,3 +23,4 @@ path = "../plume-models"
|
||||
[features]
|
||||
postgres = ["plume-models/postgres", "diesel/postgres"]
|
||||
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
|
||||
ci = ["plume-models/ci"]
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
use dotenv;
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
use clap::App;
|
||||
use diesel::Connection;
|
||||
use dotenv;
|
||||
use plume_models::{instance::Instance, Connection as Conn, CONFIG};
|
||||
use std::io::{self, prelude::*};
|
||||
|
||||
|
||||
@@ -30,3 +30,6 @@ version = "0.4"
|
||||
[dependencies.pulldown-cmark]
|
||||
default-features = false
|
||||
version = "0.2.0"
|
||||
|
||||
[features]
|
||||
ci = []
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
#![feature(associated_type_defaults)]
|
||||
|
||||
#[macro_use]
|
||||
|
||||
@@ -13,3 +13,6 @@ gettext-utils = { git = "https://github.com/Plume-org/gettext-macros/", rev = "a
|
||||
lazy_static = "1.3"
|
||||
serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
|
||||
[features]
|
||||
ci = []
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#![recursion_limit = "128"]
|
||||
#![feature(decl_macro, proc_macro_hygiene, try_trait)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate gettext_macros;
|
||||
|
||||
@@ -19,3 +19,4 @@ syn = "0.15.27"
|
||||
default = []
|
||||
postgres = []
|
||||
sqlite = []
|
||||
ci = []
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#![recursion_limit = "128"]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate quote;
|
||||
|
||||
@@ -54,3 +54,4 @@ diesel_migrations = "1.3.0"
|
||||
[features]
|
||||
postgres = ["diesel/postgres", "plume-macro/postgres" ]
|
||||
sqlite = ["diesel/sqlite", "plume-macro/sqlite" ]
|
||||
ci = ["plume-macro/ci"]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#![feature(try_trait)]
|
||||
#![feature(never_type)]
|
||||
#![feature(proc_macro_hygiene)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate diesel;
|
||||
|
||||
+8
-8
@@ -8,7 +8,7 @@ description: |
|
||||
* Media management: you can upload pictures to illustrate your articles, but also audio files if you host a podcast, and manage them all from Plume.
|
||||
* Federation: Plume is part of a network of interconnected websites called the Fediverse. Each of these websites (often called instances) have their own rules and thematics, but they can all communicate with each other.
|
||||
* Collaborative writing: invite other people to your blogs, and write articles together.
|
||||
grade: stable
|
||||
grade: devel # must be 'stable' to release into candidate/stable channels
|
||||
confinement: strict
|
||||
|
||||
apps:
|
||||
@@ -25,26 +25,26 @@ parts:
|
||||
plume:
|
||||
plugin: rust
|
||||
source: .
|
||||
rust-revision: nightly-2020-01-15
|
||||
rust-revision: nightly-2019-03-23
|
||||
build-packages:
|
||||
- libssl-dev
|
||||
- pkg-config
|
||||
- libsqlite3-dev
|
||||
- gettext
|
||||
- libclang-9-dev
|
||||
- lld-9
|
||||
- on arm64,armhf,ppc64el,s390x:
|
||||
- lld-8
|
||||
override-build: |
|
||||
snapcraftctl set-version $(git describe --tags)
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
rustup install --force --profile=minimal stable
|
||||
rustup install stable
|
||||
cargo +stable install --force cargo-web
|
||||
|
||||
# Only Tier 1 Rust platforms get rust-lld
|
||||
# On the others (arm64, armhf, powerpc64, s390x) fall back to using
|
||||
# the system LLD we've installed earlier.
|
||||
case ${SNAPCRAFT_ARCH_TRIPLET} in \
|
||||
aarch64-linux-gnu|arm-linux-gnueabihf|powerpc64le-linux-gnu|s390x-linux-gnu) \
|
||||
RUSTFLAGS="-C linker=lld-9" cargo web deploy -p plume-front --release \
|
||||
case ${SNAPCRAFT_ARCH_TRIPLE} in \
|
||||
aarch64-linux-gnu|arm-linux-gnueabihf|powerpc64-linux-gnu|s390x-linux-gnu) \
|
||||
RUSTFLAGS="-C linker=lld-8" cargo web deploy -p plume-front --release \
|
||||
;; \
|
||||
*) \
|
||||
cargo web deploy -p plume-front --release \
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
#![cfg_attr(not(feature = "ci"), warn(missing_docs))]
|
||||
#![feature(decl_macro, proc_macro_hygiene, try_trait)]
|
||||
|
||||
#[macro_use]
|
||||
|
||||
Reference in New Issue
Block a user