Skip to content

Commit 315ea19

Browse files
committed
update CI
1 parent 1c93d45 commit 315ea19

File tree

4 files changed

+70
-131
lines changed

4 files changed

+70
-131
lines changed

.travis.yml

Lines changed: 66 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,70 @@
11
language: rust
22

33
rust:
4-
- stable
5-
- beta
6-
- nightly
4+
- stable
5+
- beta
6+
- nightly
7+
78
os:
8-
- linux
9-
- osx
9+
- linux
10+
- osx
11+
- windows
12+
13+
env:
14+
-
15+
- NO_DEFAULT_FEATURES=1 FEATURES="no_std"
16+
- RELEASE=1
17+
- RELEASE=1 NO_DEFAULT_FEATURES=1 FEATURES="no_std"
18+
19+
script:
20+
- if [ "$NO_DEFAULT_FEATURES" = "1" ]; then NO_DEFAULT_FEATURES="--no-default-features"; else NO_DEFAULT_FEATURES=""; fi
21+
- if [ "$RELEASE" = "1" ]; then RELEASE="--release"; else RELEASE=""; fi
22+
- cargo test $RELEASE --verbose $NO_DEFAULT_FEATURES --features "$FEATURES"
23+
24+
matrix:
25+
include:
26+
- rust: stable
27+
os: linux
28+
env: TARGET=x86_64-unknown-linux-musl
29+
install: rustup target add $TARGET
30+
script: cargo test --target $TARGET
31+
- rust: beta
32+
os: linux
33+
env: TARGET=x86_64-unknown-linux-musl
34+
install: rustup target add $TARGET
35+
script: cargo test --target $TARGET
36+
- rust: nightly
37+
os: linux
38+
env: TARGET=x86_64-unknown-linux-musl
39+
install: rustup target add $TARGET
40+
script: cargo test --target $TARGET
41+
- rust: stable
42+
os: windows
43+
env: TARGET=x86_64-pc-windows-gnu
44+
install:
45+
- rustup set default-host $TARGET
46+
- rustup default $TRAVIS_RUST_VERSION
47+
- rustup target add $TARGET
48+
- mkdir -p ~/.cargo
49+
- printf '\n[target.'$TARGET']\nlinker = "x86_64-w64-mingw32-gcc"\nar = "x86_64-w64-mingw32-ar"\n' >> ~/.cargo/config
50+
script: cargo test --target $TARGET
51+
- rust: beta
52+
os: windows
53+
env: TARGET=x86_64-pc-windows-gnu
54+
install:
55+
- rustup set default-host $TARGET
56+
- rustup default $TRAVIS_RUST_VERSION
57+
- rustup target add $TARGET
58+
- mkdir -p ~/.cargo
59+
- printf '\n[target.'$TARGET']\nlinker = "x86_64-w64-mingw32-gcc"\nar = "x86_64-w64-mingw32-ar"\n' >> ~/.cargo/config
60+
script: cargo test --target $TARGET
61+
- rust: nightly
62+
os: windows
63+
env: TARGET=x86_64-pc-windows-gnu
64+
install:
65+
- rustup set default-host $TARGET
66+
- rustup default $TRAVIS_RUST_VERSION
67+
- rustup target add $TARGET
68+
- mkdir -p ~/.cargo
69+
- printf '\n[target.'$TARGET']\nlinker = "x86_64-w64-mingw32-gcc"\nar = "x86_64-w64-mingw32-ar"\n' >> ~/.cargo/config
70+
script: cargo test --target $TARGET

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lazy-static-include"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
authors = ["Magic Len <len@magiclen.org>"]
55
repository = "https://github.com/magiclen/lazy-static-include"
66
homepage = "https://magiclen.org/lazy-static-include"
@@ -10,9 +10,9 @@ description= "This crate provides `lazy_static_include_bytes` and `lazy_static_i
1010
readme = "README.md"
1111
license = "MIT"
1212

13-
[badges]
14-
travis-ci = { repository = "magiclen/lazy-static-include", branch = "master" }
15-
appveyor = { repository = "magiclen/lazy-static-include", branch = "master", service = "github" }
13+
[badges.travis-ci]
14+
repository = "magiclen/lazy-static-include"
15+
branch = "master"
1616

1717
[dependencies]
1818
lazy_static = "1.3"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Lazy Static Include
22
====================
33

44
[![Build Status](https://travis-ci.org/magiclen/lazy-static-include.svg?branch=master)](https://travis-ci.org/magiclen/lazy-static-include)
5-
[![Build status](https://ci.appveyor.com/api/projects/status/gvc26sm6ytnucmn2/branch/master?svg=true)](https://ci.appveyor.com/project/magiclen/lazy-static-include/branch/master)
65

76
This crate provides `lazy_static_include_bytes` and `lazy_static_include_str` macros to replace `include_bytes` and `include_str` macros.
87

appveyor.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)