mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 23:46:31 +03:00
* chore: update some ci * feat: no more libiconv * refactor: updates for updated mmime api * fixup: correct mmime path * cleanup * use newer visual studio * Update appveyor.yml * unify libc imports and improve windows situation * refactor: use rust based sleep * improve cross platform state of types * docs: update readme badges
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
# copied from http://koushiro.me/2019/04/30/Building-and-Testing-Rust-projects-on-CircleCI/
|
|
|
|
version: 2.1
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: ubuntu:18.04
|
|
|
|
working_directory: ~/deltachat-core-rust
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: Setup build environment
|
|
command: |
|
|
apt update
|
|
apt install -y curl build-essential autoconf libtool git python pkg-config libssl-dev
|
|
# this will pick default toolchain from `rust-toolchain` file
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y;
|
|
source $HOME/.cargo/env
|
|
no_output_timeout: 1800s
|
|
|
|
- run:
|
|
name: Format
|
|
command: |
|
|
export PATH=~/.cargo/bin:$PATH
|
|
rustup component add rustfmt
|
|
cargo fmt -- --check
|
|
|
|
- run:
|
|
name: Test
|
|
command: |
|
|
export PATH=~/.cargo/bin:$PATH
|
|
export RUST_BACKTRACE=1
|
|
cargo test
|
|
|
|
- run:
|
|
name: Build deltachat-ffi
|
|
command: |
|
|
export PATH=~/.cargo/bin:$PATH
|
|
export RUST_BACKTRACE=1
|
|
cargo build --release -p deltachat_ffi
|
|
|
|
workflows:
|
|
version: 2.1
|
|
build:
|
|
jobs:
|
|
- build
|