Skip to content

Commit

Permalink
Refactor CI (#35)
Browse files Browse the repository at this point in the history
* refactor ci

* fix up no-std build for json
  • Loading branch information
KodrAus authored Apr 30, 2019
1 parent 73cd623 commit cfeaa1f
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ matrix:
include:
- rust: nightly
script:
- ./ci/travis.sh
- cargo bench --all --no-run
- ./ci/publish-docs.sh
- ./ci/nightly.sh
- rust: beta
script:
- ./ci/travis.sh
- cargo test -p sval_fmt_tests
- ./ci/beta.sh
- rust: stable
script:
- ./ci/travis.sh
- ./ci/stable.sh
- rust: stable
script:
- ./ci/thumbv6m.sh
8 changes: 8 additions & 0 deletions ci/beta.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -o errexit -o nounset

./ci/test.sh

printf "\n\n---- format consistency ----\n\n"
cargo test -p sval_fmt_tests
10 changes: 10 additions & 0 deletions ci/nightly.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -o errexit -o nounset

./ci/test.sh

printf "\n\n---- benchmarks ----\n\n"
cargo bench --all --no-run

./ci/publish-docs.sh
5 changes: 5 additions & 0 deletions ci/stable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -o errexit -o nounset

./ci/test.sh
File renamed without changes.
18 changes: 18 additions & 0 deletions ci/thumbv6m.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -o errexit -o nounset

rustup target add thumbv6m-none-eabi

# `sval` builds
printf "\n\n---- sval ----\n\n"
cargo build --target=thumbv6m-none-eabi

printf "\n\n---- sval with fmt ----\n\n"
cargo build --target=thumbv6m-none-eabi --features fmt

# sval_json builds
pushd json
printf "\n\n---- sval_json ----\n\n"
cargo build --target=thumbv6m-none-eabi
popd
1 change: 1 addition & 0 deletions json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ version = "0.2"

[dependencies.itoa]
version = "0.4"
default-features = false

0 comments on commit cfeaa1f

Please sign in to comment.