summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-12-02 07:15:40 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-12-02 07:15:40 -0800
commitdefaa72be89e337787154966911ee7c630fd974d (patch)
treeb3ba78212f22600db5fe0fac4bd04750fde73ee4
parent4e7c84f4e179f4d7f21da60241d08efbcb386adf (diff)
downloadssh2-rs-defaa72be89e337787154966911ee7c630fd974d.zip
Tweak travis config
-rw-r--r--.travis.yml50
1 files changed, 28 insertions, 22 deletions
diff --git a/.travis.yml b/.travis.yml
index bfe5eba..449c407 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,30 +1,47 @@
language: rust
-rust:
- - stable
- - beta
- - nightly
sudo: false
+
+matrix:
+ include:
+ - rust: 1.21.0
+ - rust: stable
+ - os: osx
+ before_install:
+ - export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
+ - export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib
+ - rust: beta
+ - rust: nightly
+
+ - rust: nightly
+ before_script:
+ - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
+ script:
+ - cargo doc --no-deps
+ - cargo doc --no-deps --manifest-path libssh2-sys/Cargo.toml
+ after_success:
+ - travis-cargo --only nightly doc-upload
+
before_script:
- - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
- ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
- eval `ssh-agent -s`
- ssh-add ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- telnet localhost 22 &
+
script:
- - export CARGO_TARGET_DIR=`pwd`/target
- cargo build
- cargo test
- rustdoc --test README.md -L target
- cargo run --manifest-path systest/Cargo.toml
- - cargo doc --no-deps
- - cargo doc --no-deps --manifest-path libssh2-sys/Cargo.toml
-after_success:
- - travis-cargo --only nightly doc-upload
- - travis-cargo coveralls --no-sudo
+
+env:
+ global:
+ secure: "Pv35wAFBLDqTGXot1aq7JtDAzwWXxTQahl3MeH9T1fdq2SqNdvXQazRJqDZcpeTO5EH+g2hLShiz9bije2746hzoIyb4GFt1II35a2hff2hBaxsaBb2BCPc7wEjW6u8QQ+PZXpauO2OQrlPwJUBpIActGp6NOI/Et4a3eFBOpx4="
+
notifications:
email:
on_success: never
+
addons:
apt:
sources:
@@ -34,14 +51,3 @@ addons:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
-env:
- global:
- secure: "Pv35wAFBLDqTGXot1aq7JtDAzwWXxTQahl3MeH9T1fdq2SqNdvXQazRJqDZcpeTO5EH+g2hLShiz9bije2746hzoIyb4GFt1II35a2hff2hBaxsaBb2BCPc7wEjW6u8QQ+PZXpauO2OQrlPwJUBpIActGp6NOI/Et4a3eFBOpx4="
-
-matrix:
- include:
- - os: osx
- rust: stable
- before_install:
- - export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
- - export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib