Skip to content

Commit

Permalink
Merge branch 'rc/poc-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Nov 19, 2018
2 parents 40e5830 + c844fb3 commit d0b4d70
Show file tree
Hide file tree
Showing 87 changed files with 11,167 additions and 9 deletions.
45 changes: 45 additions & 0 deletions .circleci/config.yml
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
34 changes: 34 additions & 0 deletions .gitignore
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
29 changes: 29 additions & 0 deletions .travis.yml
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
Loading

0 comments on commit d0b4d70

Please sign in to comment.