-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
11,167 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: nervos/nervos-build:latest | ||
working_directory: ~/nervos-build | ||
steps: | ||
- checkout | ||
- run: | ||
name: format | ||
command: 'cargo fmt --all -- --write-mode diff' | ||
- run: | ||
name: build | ||
command: 'cargo build' | ||
- save_cache: | ||
key: nervos-build-{{ .Environment.CIRCLE_SHA1 }} | ||
paths: | ||
- ~/nervos-build | ||
- save_cache: | ||
key: deps-{{ checksum "Cargo.lock" }} | ||
paths: | ||
- ~/.cargo | ||
|
||
|
||
basic_test: | ||
docker: | ||
- image: nervos/nervos-build:latest | ||
working_directory: ~/nervos-build | ||
steps: | ||
- restore_cache: | ||
key: nervos-build-{{ .Environment.CIRCLE_SHA1 }} | ||
- restore_cache: | ||
key: deps-{{ checksum "Cargo.lock" }} | ||
- run: | ||
name: test | ||
command: 'cargo test --all' | ||
|
||
workflows: | ||
version: 2 | ||
build-and-test: | ||
jobs: | ||
- build | ||
- basic_test: | ||
requires: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Compiled files | ||
*.o | ||
*.so | ||
*.rlib | ||
*.dll | ||
|
||
# Executables | ||
*.exe | ||
|
||
# intermedia file directory | ||
target/ | ||
*/target/ | ||
admintool/example/ | ||
|
||
*.pyc | ||
|
||
# Cargo lock in subs | ||
**/Cargo.lock | ||
|
||
# editor specific | ||
# vim stuff | ||
*.swp | ||
# emacs stuff | ||
*~ | ||
# vscode | ||
.vscode | ||
# jetbrains ide stuff | ||
.idea | ||
*.iml | ||
# mac stuff | ||
. | ||
|
||
# vagrant file | ||
.vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
language: rust | ||
sudo: true | ||
cache: cargo | ||
|
||
env: | ||
global: | ||
- CLIPPY_VERSION=0.0.181 | ||
|
||
matrix: | ||
include: | ||
- os: osx | ||
rust: nightly-2018-01-23 | ||
before_script: | ||
- rustup component add rustfmt-preview --toolchain=nightly-2018-01-23 | ||
- bash -c 'if [[ ! -e $HOME/.cargo/bin/cargo-clippy ]]; then | ||
cargo install clippy --vers $CLIPPY_VERSION --force; | ||
fi' | ||
- rust: nightly-2018-01-23 | ||
before_install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y git autoconf flex bison texinfo libtool | ||
before_script: | ||
- rustup component add rustfmt-preview --toolchain=nightly-2018-01-23 | ||
- bash -c 'if [[ ! -e $HOME/.cargo/bin/cargo-clippy ]]; then | ||
cargo install clippy --vers $CLIPPY_VERSION --force; | ||
fi' | ||
|
||
script: | ||
- make ci |
Oops, something went wrong.