Skip to content

Commit

Permalink
Ci (#3)
Browse files Browse the repository at this point in the history
* feat(ci): added circle ci config

* refactor(ci): checkout before running test

* refactor(ci): install stable toolchain for stable test

* refactor(README): added ci badge to README

[ci skip]
  • Loading branch information
jeff1010322 authored Sep 27, 2019
1 parent 79099ef commit 0d35020
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
version: 2

jobs:
build:
docker:
- image: circleci/rust:latest
steps:
- checkout
- restore_cache:
key: project-cache
- run:
name: Check formatting
command: |
rustfmt --version
cargo fmt -- --check
- run:
name: Nightly Build
command: |
rustup toolchain install nightly
rustup run nightly rustc --version --verbose
rustup run nightly cargo --version --verbose
rustup run nightly cargo build
- run:
name: Stable Build
command: |
rustup toolchain install stable
rustup run stable rustc --version --verbose
rustup run stable cargo --version --verbose
rustup run stable cargo build
- run:
name: Wasm Build
command: |
rustup toolchain install nightly
rustup update
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup run nightly cargo build --release --target wasm32-unknown-unknown
- save_cache:
key: project-cache
paths:
- "~/.cargo"
- "./target"
test:
docker:
- image: circleci/rust:latest
steps:
- checkout
- run:
name: Test
command: |
rustup toolchain install nightly
rustup run nightly cargo test
rustup toolchain install stable
rustup run stable cargo test
workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# XDR RS Serialize

[![CircleCI](https://circleci.com/gh/kochavalabs/xdr-rs-serialize.svg?style=svg)](https://circleci.com/gh/kochavalabs/xdr-rs-serialize)

Xdr-rs-serialize is a library for facilitating the (de)serialization of rust
objects into the [XDR](https://en.wikipedia.org/wiki/External_Data_Representation)
format.
Expand Down

0 comments on commit 0d35020

Please sign in to comment.