From 82115e233f71ac92a831eb543f1870f9662953b0 Mon Sep 17 00:00:00 2001 From: Sean Prashad Date: Thu, 1 Nov 2018 14:53:21 -0400 Subject: [PATCH 1/6] feat: Add initial TravisCI config file This initial configuration supports stable, beta, and nightly versions of Rust with failures allowed for nightly. In addition, it also supports caching Cargo dependencies, as well as linting and tests. Fixes #3 --- .travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..647fb68 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: rust +rust: + - stable + - beta + - nightly +# Cache dependencies so that they are only recompiled +# if they or the compiler were upgraded +cache: cargo +before_script: + - rustup component add clippy-preview +script: + - cargo clippy --all-targets --all-features -- -D warnings + - cargo test --verbose +matrix: + allow_failures: + - rust: nightly + fast_finish: true From be826a453c068e4e6f9a9aa6971bff049ece1858 Mon Sep 17 00:00:00 2001 From: Sean Prashad Date: Thu, 1 Nov 2018 15:54:26 -0400 Subject: [PATCH 2/6] Add Travis build badge to README --- README.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9fcd7b0..a73bb61 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,10 @@ supernova ========= - Tool for exporting GitHub stars as an organized list. +.. image:: https://travis-ci.org/0xazure/supernova.svg?branch=master + :target: https://travis-ci.org/0xazure/supernova + +A tool for exporting GitHub stars as an organized list. things learned -------------- From 950f87f405a0d97aa62f8f1908b2993ff7a5e426 Mon Sep 17 00:00:00 2001 From: Sean Prashad Date: Fri, 2 Nov 2018 18:20:00 -0400 Subject: [PATCH 3/6] Adjust indentation for README project description --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index a73bb61..56672ba 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ supernova .. image:: https://travis-ci.org/0xazure/supernova.svg?branch=master :target: https://travis-ci.org/0xazure/supernova -A tool for exporting GitHub stars as an organized list. + Tool for exporting GitHub stars as an organized list. things learned -------------- From 7c1ecd89154fc310d27603f5ffb368a161cf2a75 Mon Sep 17 00:00:00 2001 From: Sean Prashad Date: Fri, 2 Nov 2018 18:20:50 -0400 Subject: [PATCH 4/6] Select windows and linux platforms to build for TravisCI --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 647fb68..255c955 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ language: rust +os: + - linux + - windows rust: - stable - beta From 6f87918225f9cebb98b7757c758a13ac0c562ed1 Mon Sep 17 00:00:00 2001 From: Sean Prashad Date: Fri, 2 Nov 2018 18:21:34 -0400 Subject: [PATCH 5/6] Update Travis's caching criteria As caching target and ~/.cargo/registry accumulates a lot of dead weight, removing these will speed up the build significantly. Reference: https://levans.fr/rust_travis_cache.html --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 255c955..e7bff93 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,13 @@ rust: - stable - beta - nightly -# Cache dependencies so that they are only recompiled -# if they or the compiler were upgraded -cache: cargo +# Need to cache the whole `.cargo` directory to keep .crates.toml for +# cargo-update to work, but don't cache the cargo registry +before_cache: + - rm -rf /home/travis/.cargo/registry +cache: + directories: + - /home/travis/.cargo before_script: - rustup component add clippy-preview script: From 2ef3de39ca951418db2e7f6bec86a43cdc49c9f4 Mon Sep 17 00:00:00 2001 From: Sean Prashad Date: Fri, 2 Nov 2018 20:24:18 -0400 Subject: [PATCH 6/6] Add pipe to correct rendering of README --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 56672ba..b1a235e 100644 --- a/README.rst +++ b/README.rst @@ -4,6 +4,8 @@ supernova .. image:: https://travis-ci.org/0xazure/supernova.svg?branch=master :target: https://travis-ci.org/0xazure/supernova +| + Tool for exporting GitHub stars as an organized list. things learned