From f874f4317271e09ea67df5779a0702e6be96a69e Mon Sep 17 00:00:00 2001 From: krircc Date: Fri, 13 Apr 2018 09:26:33 +0800 Subject: [PATCH 1/6] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf6a1ff0..e454969a 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ -# examples \ No newline at end of file +# Actix examples + +A curated list of examples related to actix, there are all in actix release version. + +## Contribute +welcome to contribute ! From 73b7ea3a140e3ce30b337d365e5653c277c67e10 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 12 Apr 2018 19:04:35 -0700 Subject: [PATCH 2/6] add travis config --- .travis.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..18b19d91 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,62 @@ +language: rust +sudo: false +dist: trusty + +cache: + cargo: true + apt: true + +matrix: + include: + - rust: 1.21.0 + - rust: stable + - rust: beta + - rust: nightly + allow_failures: + - rust: nightly + +#rust: +# - 1.21.0 +# - stable +# - beta +# - nightly-2018-01-03 + +env: + global: + # - RUSTFLAGS="-C link-dead-code" + - OPENSSL_VERSION=openssl-1.0.2 + +before_install: + - sudo add-apt-repository -y ppa:0k53d-karl-f830m/openssl + - sudo apt-get update -qq + - sudo apt-get install -qq libssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev + +# Add clippy +before_script: + - | + if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then + ( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false ); + fi + - export PATH=$PATH:~/.cargo/bin + +script: + - | + if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then + cd basics && cargo check && cd .. + cd diesel && cargo check && cd .. + cd hello-world && cargo check && cd .. + cd http-proxy && cargo check && cd .. + cd json && cargo check && cd .. + cd juniper && cargo check && cd .. + cd multipart && cargo check && cd .. + cd protobuf && cargo check && cd .. + cd r2d2 && cargo check && cd .. + cd redis-session && cargo check && cd .. + cd state && cargo check && cd .. + cd template_tera && cargo check && cd .. + cd tls && cargo check && cd .. + cd unix-socket && cargo check && cd .. + cd web-cors/backend && cargo check && cd .. + cd websocket && cargo check && cd .. + cd websocket-chat && cargo check && cd .. + fi From c907ad8c8aa9526a071a6dd733354112f00c5b76 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 12 Apr 2018 19:09:01 -0700 Subject: [PATCH 3/6] add badges --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e454969a..8b58c8a8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# Actix examples +# Actix examples [![Build Status](https://travis-ci.org/actix/actix-web.svg?branch=master)](https://travis-ci.org/actix/actix-web) [![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -A curated list of examples related to actix, there are all in actix release version. +A curated list of examples related to actix. ## Contribute -welcome to contribute ! + +Welcome to contribute ! From c7a05cf43c8eb77adca31dc5cd6cbf6f47342cc4 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 12 Apr 2018 19:10:01 -0700 Subject: [PATCH 4/6] fix path --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b58c8a8..96ba70db 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Actix examples [![Build Status](https://travis-ci.org/actix/actix-web.svg?branch=master)](https://travis-ci.org/actix/actix-web) [![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +# Actix examples [![Build Status](https://travis-ci.org/actix/actix-examples.svg?branch=master)](https://travis-ci.org/actix/actix-examples) [![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) A curated list of examples related to actix. From bc7c05244472246f79a0fc5c53d8ada90969ce13 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 12 Apr 2018 19:10:35 -0700 Subject: [PATCH 5/6] fix path --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96ba70db..db658f06 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Actix examples [![Build Status](https://travis-ci.org/actix/actix-examples.svg?branch=master)](https://travis-ci.org/actix/actix-examples) [![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +# Actix examples [![Build Status](https://travis-ci.org/actix/actix-examples.svg?branch=master)](https://travis-ci.org/actix/examples) [![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) A curated list of examples related to actix. From 95091272a60995a077282ae0a54b15198d5e8835 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 12 Apr 2018 19:11:34 -0700 Subject: [PATCH 6/6] check examples on all versions of rust --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 18b19d91..33dc26ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,6 @@ before_script: script: - | - if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then cd basics && cargo check && cd .. cd diesel && cargo check && cd .. cd hello-world && cargo check && cd .. @@ -59,4 +58,3 @@ script: cd web-cors/backend && cargo check && cd .. cd websocket && cargo check && cd .. cd websocket-chat && cargo check && cd .. - fi