add build commands
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2020-01-16 23:25:40 +01:00
parent 6105bbdc65
commit 3de918d4bd
2 changed files with 13 additions and 7 deletions

View File

@ -21,20 +21,23 @@ local PipelineBuild(os='linux', arch='amd64') = {
commands: [
'[ -z "${DRONE_TAG}" ] && BITWARDEN_VERSION=master || BITWARDEN_VERSION=${DRONE_TAG%-*}',
'mkdir -p source/',
'apt-get update && apt-get install -y --no-install-recommends libpq-dev',
'apt-get -qq update && apt-get install -yqq --no-install-recommends libpq-dev ',
'rustup set profile minimal',
'curl -L https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1',
'curl -sSL https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1',
'ls -lah source && id',
'cargo new --bin app/ && cd app/',
'cp ../source/Cargo.* .',
'cp ../source/rust-toolchain .',
'cp ../source/build.rs .',
'rustup target add x86_64-unknown-linux-musl',
'cargo build --features $DB --release',
'cargo build -j 8 --features $DB --release',
'find . -not -path "./target*" -delete',
'ls -lah',
'cp -rT ../source .',
'ls -lah'
'ls -lah',
'touch src/main.rs',
'cargo build -j 8 --features $DB --release',
'./target/x86_64-unknown-linux-musl/release/bitwarden_rs --help'
],
},
// {

View File

@ -12,20 +12,23 @@ steps:
commands:
- "[ -z \"${DRONE_TAG}\" ] && BITWARDEN_VERSION=master || BITWARDEN_VERSION=${DRONE_TAG%-*}"
- mkdir -p source/
- apt-get update && apt-get install -y --no-install-recommends libpq-dev
- "apt-get -qq update && apt-get install -yqq --no-install-recommends libpq-dev "
- rustup set profile minimal
- curl -L https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1
- curl -sSL https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1
- ls -lah source && id
- cargo new --bin app/ && cd app/
- cp ../source/Cargo.* .
- cp ../source/rust-toolchain .
- cp ../source/build.rs .
- rustup target add x86_64-unknown-linux-musl
- cargo build --features $DB --release
- cargo build -j 8 --features $DB --release
- find . -not -path "./target*" -delete
- ls -lah
- cp -rT ../source .
- ls -lah
- touch src/main.rs
- cargo build -j 8 --features $DB --release
- ./target/x86_64-unknown-linux-musl/release/bitwarden_rs --help
environment:
DB: postgresql
DEBIAN_FRONTEND: noninteractive