From fe1f84e68374b371e1679dcc3867cb24b13d5e61 Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Tue, 30 Apr 2019 16:19:12 -0700 Subject: [PATCH] Setup Travis CI --- .travis.yml | 18 ++++++++++++++++++ README.md | 2 ++ ct.sh | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .travis.yml create mode 100755 ct.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9d73d14 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +branches: + only: + # This is where pull requests from "bors r+" are built. + - staging + # This is where pull requests from "bors try" are built. + - trying + # Not really necessary, just to get a green badge on “master” + - master +language: rust +dist: xenial +rust: + - nightly-2015-05-01 # see ct.sh for more versions +env: + - RUST_BACKTRACE=1 +before_script: + - ./ct.sh install +script: + - ./ct.sh diff --git a/README.md b/README.md index b578c0e..ace7d37 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # core_io +[![Build Status](https://travis-ci.com/jethrogb/rust-core_io.svg?branch=master)](https://travis-ci.com/jethrogb/rust-core_io) + `std::io` with all the parts that don't work in core removed. ## Adding new nightly versions diff --git a/ct.sh b/ct.sh new file mode 100755 index 0000000..3f0bad1 --- /dev/null +++ b/ct.sh @@ -0,0 +1,37 @@ +#!/bin/bash -e +RUST_VERSIONS=$(awk '{print $1}' < Version '$v + cargo +$v build + cargo +$v build --features alloc + cargo +$v build --features collections +done