Tweaked Travis settings and tried to enable Appveyor CI.
This commit is contained in:
parent
582f1166f2
commit
eda83ac3d9
28
.travis.yml
28
.travis.yml
|
@ -1,18 +1,34 @@
|
||||||
language: rust
|
language: rust
|
||||||
|
sudo: false
|
||||||
|
rust:
|
||||||
|
# 1.8.0 is the earliest known version that Cargo does work for the current crates.io-index repo.
|
||||||
|
# probably older versions work, but we are forced to use this as the minimum for Cargo...
|
||||||
|
- 1.8.0
|
||||||
|
- stable
|
||||||
|
- beta
|
||||||
|
- nightly
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- rust: nightly
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- LD_LIBRARY_PATH: /usr/local/lib
|
- LD_LIBRARY_PATH: /usr/local/lib
|
||||||
- secure: i8Ijk6g4/26e3e7+r2OeGAPSP8G8O9P50JibW1omJ0j0ixXhyhPoY2bch3CGhnOu44dI5O31IIbjJJ+iEMp29xQBvkv9YpxAI+hIzOP+XAH6GCYxUDiBVcDoWrXTj+wU6/veuvjLCunu4eRHlskrgJbZXhUVODYzJuLgsN8Ou0w=
|
|
||||||
script:
|
script:
|
||||||
|
# interleave building and testing in hope that it saves time
|
||||||
- cargo build -v
|
- cargo build -v
|
||||||
- cargo build -v --features rustc-serialize
|
|
||||||
- cargo build -v --features serde
|
|
||||||
- cargo test -v
|
- cargo test -v
|
||||||
|
- cargo build -v --features rustc-serialize
|
||||||
- cargo test -v --features rustc-serialize
|
- cargo test -v --features rustc-serialize
|
||||||
|
- cargo build -v --features serde
|
||||||
- cargo test -v --features serde
|
- cargo test -v --features serde
|
||||||
- cargo doc
|
notifications:
|
||||||
after_script:
|
email: false
|
||||||
- cd target && curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
|
irc:
|
||||||
|
channels:
|
||||||
|
- "irc.mozilla.org#chronotope"
|
||||||
|
template:
|
||||||
|
- "%{repository_slug}/%{branch} (%{commit} - %{author}): %{message}"
|
||||||
|
skip_join: true
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -21,12 +21,18 @@ README.md: src/lib.rs
|
||||||
awk '/^\/\/! # Chrono /{print "[Chrono][doc]",$$4}' $< | sed 's/./=/g' >> $@
|
awk '/^\/\/! # Chrono /{print "[Chrono][doc]",$$4}' $< | sed 's/./=/g' >> $@
|
||||||
echo >> $@
|
echo >> $@
|
||||||
echo '[![Chrono on Travis CI][travis-image]][travis]' >> $@
|
echo '[![Chrono on Travis CI][travis-image]][travis]' >> $@
|
||||||
|
echo '[![Chrono on Appveyor][appveyor-image]][appveyor]' >> $@
|
||||||
|
echo '[![Chrono on crates.io][cratesio-image]][cratesio]' >> $@
|
||||||
echo >> $@
|
echo >> $@
|
||||||
echo '[travis-image]: https://travis-ci.org/lifthrasiir/rust-chrono.png' >> $@
|
echo '[travis-image]: https://travis-ci.org/lifthrasiir/rust-chrono.svg?branch=master' >> $@
|
||||||
echo '[travis]: https://travis-ci.org/lifthrasiir/rust-chrono' >> $@
|
echo '[travis]: https://travis-ci.org/lifthrasiir/rust-chrono/branch/master' >> $@
|
||||||
|
echo '[appveyor-image]: https://ci.appveyor.com/api/projects/status/o83jn08389si56fy/branch/master?svg=true' >> $@
|
||||||
|
echo '[appveyor]: https://ci.appveyor.com/project/lifthrasiir/rust-chrono/branch/master' >> $@
|
||||||
|
echo '[cratesio-image]: https://img.shields.io/crates/v/chrono.svg' >> $@
|
||||||
|
echo '[cratesio]: https://crates.io/crates/chrono' >> $@
|
||||||
awk '/^\/\/! # Chrono /,/^\/\/! ## /' $< | cut -b 5- | grep -v '^#' | \
|
awk '/^\/\/! # Chrono /,/^\/\/! ## /' $< | cut -b 5- | grep -v '^#' | \
|
||||||
sed 's/](\.\//](https:\/\/lifthrasiir.github.io\/rust-chrono\/chrono\//g' >> $@
|
sed 's/](\.\//](https:\/\/lifthrasiir.github.io\/rust-chrono\/chrono\//g' >> $@
|
||||||
echo '[Complete Documentation][doc]' >> $@
|
echo '***[Complete Documentation][doc]***' >> $@
|
||||||
echo >> $@
|
echo >> $@
|
||||||
echo '[doc]: https://lifthrasiir.github.io/rust-chrono/' >> $@
|
echo '[doc]: https://lifthrasiir.github.io/rust-chrono/' >> $@
|
||||||
echo >> $@
|
echo >> $@
|
||||||
|
|
12
README.md
12
README.md
|
@ -2,9 +2,15 @@
|
||||||
====================
|
====================
|
||||||
|
|
||||||
[![Chrono on Travis CI][travis-image]][travis]
|
[![Chrono on Travis CI][travis-image]][travis]
|
||||||
|
[![Chrono on Appveyor][appveyor-image]][appveyor]
|
||||||
|
[![Chrono on crates.io][cratesio-image]][cratesio]
|
||||||
|
|
||||||
[travis-image]: https://travis-ci.org/lifthrasiir/rust-chrono.png
|
[travis-image]: https://travis-ci.org/lifthrasiir/rust-chrono.svg?branch=master
|
||||||
[travis]: https://travis-ci.org/lifthrasiir/rust-chrono
|
[travis]: https://travis-ci.org/lifthrasiir/rust-chrono/branch/master
|
||||||
|
[appveyor-image]: https://ci.appveyor.com/api/projects/status/o83jn08389si56fy/branch/master?svg=true
|
||||||
|
[appveyor]: https://ci.appveyor.com/project/lifthrasiir/rust-chrono/branch/master
|
||||||
|
[cratesio-image]: https://img.shields.io/crates/v/chrono.svg
|
||||||
|
[cratesio]: https://crates.io/crates/chrono
|
||||||
|
|
||||||
Date and time handling for Rust. (also known as `rust-chrono`)
|
Date and time handling for Rust. (also known as `rust-chrono`)
|
||||||
It aims to be a feature-complete superset of
|
It aims to be a feature-complete superset of
|
||||||
|
@ -23,7 +29,7 @@ which Chrono builts upon and should acknowledge:
|
||||||
* Dietrich Epp's [datetime-rs](https://github.com/depp/datetime-rs)
|
* Dietrich Epp's [datetime-rs](https://github.com/depp/datetime-rs)
|
||||||
* Luis de Bethencourt's [rust-datetime](https://github.com/luisbg/rust-datetime)
|
* Luis de Bethencourt's [rust-datetime](https://github.com/luisbg/rust-datetime)
|
||||||
|
|
||||||
[Complete Documentation][doc]
|
***[Complete Documentation][doc]***
|
||||||
|
|
||||||
[doc]: https://lifthrasiir.github.io/rust-chrono/
|
[doc]: https://lifthrasiir.github.io/rust-chrono/
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- TARGET: 1.8.0-x86_64-pc-windows-gnu
|
||||||
|
- TARGET: stable-x86_64-pc-windows-msvc
|
||||||
|
- TARGET: stable-i686-pc-windows-msvc
|
||||||
|
- TARGET: stable-x86_64-pc-windows-gnu
|
||||||
|
- TARGET: stable-i686-pc-windows-gnu
|
||||||
|
- TARGET: nightly-x86_64-pc-windows-msvc
|
||||||
|
- TARGET: nightly-i686-pc-windows-msvc
|
||||||
|
- TARGET: nightly-x86_64-pc-windows-gnu
|
||||||
|
- TARGET: nightly-i686-pc-windows-gnu
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- channel: nightly
|
||||||
|
install:
|
||||||
|
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:TARGET}.exe" -FileName "rust-install.exe"
|
||||||
|
- ps: .\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null
|
||||||
|
- ps: $env:PATH="$env:PATH;C:\rust\bin"
|
||||||
|
- rustc -vV
|
||||||
|
- cargo -vV
|
||||||
|
build_script:
|
||||||
|
# do not test all combinations, Travis will handle that
|
||||||
|
- cargo build -v --features 'serde rustc-serialize'
|
||||||
|
test_script:
|
||||||
|
- cargo test -v --features 'serde rustc-serialize'
|
Loading…
Reference in New Issue