From 30583ef1a62380c37277257e86cf12f4ee9b4920 Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Wed, 6 May 2015 14:44:40 +0200 Subject: [PATCH 1/4] Build on beta only --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0dbdea8..ff8d36c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: rust rust: - - nightly - 1.0.0-beta.4 after_success: | From 6ea49d770cf95d71ed245d075ad4ccfbbd2d3ba4 Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Wed, 6 May 2015 15:48:15 +0200 Subject: [PATCH 2/4] Try travis-cargo --- .travis.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff8d36c..4e30e17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,18 @@ language: rust +sudo: required rust: - 1.0.0-beta.4 - -after_success: | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - cargo doc && - echo '' > target/doc/index.html && - sudo pip install ghp-import && - ghp-import -n target/doc && - git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages +before_script: + - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH +script: + - | + travis-cargo build && + travis-cargo test && + travis-cargo doc +after_success: + - travis-cargo doc-upload + - travis-cargo coveralls env: global: From 8da3a09140060603d81d37047c68179d96668797 Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Wed, 6 May 2015 15:48:50 +0200 Subject: [PATCH 3/4] Beta build status --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5de29b9..0850f82 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -rust-smtp [![Build Status](https://travis-ci.org/amousset/rust-smtp.svg?branch=master)](https://travis-ci.org/amousset/rust-smtp) [![](https://meritbadge.herokuapp.com/smtp)](https://crates.io/crates/smtp) +rust-smtp [![Build Status](https://travis-ci.org/amousset/rust-smtp.svg?branch=beta)](https://travis-ci.org/amousset/rust-smtp) [![](https://meritbadge.herokuapp.com/smtp)](https://crates.io/crates/smtp) ========= This library implements a simple SMTP client. From a4ada1b6efb916befe118ac70e77957b94232e07 Mon Sep 17 00:00:00 2001 From: Alexis Mousset Date: Wed, 6 May 2015 21:39:22 +0200 Subject: [PATCH 4/4] Remove uneeded use --- Cargo.toml | 2 +- examples/client.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a026c71..2d8b178 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "smtp" -version = "0.0.11" +version = "0.0.12" description = "Simple SMTP client" readme = "README.md" documentation = "http://amousset.github.io/rust-smtp/smtp/" diff --git a/examples/client.rs b/examples/client.rs index 55525d4..db22a5c 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -12,8 +12,6 @@ extern crate log; extern crate env_logger; extern crate smtp; -use std::net::TcpStream; - use smtp::sender::{Sender, SenderBuilder}; use smtp::mailer::EmailBuilder;