Skip to content

Commit 5baaf55

Browse files
authored
Merge pull request #770 from mattico/improve-travis
Improve CI
2 parents 3688f73 + 9157f6e commit 5baaf55

File tree

3 files changed

+14
-58
lines changed

3 files changed

+14
-58
lines changed

.travis.yml

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

3+
rust:
4+
- stable
5+
- beta
6+
- nightly
7+
8+
os:
9+
- linux
10+
- osx
11+
312
cache:
413
timeout: 360
514
cargo: true
@@ -10,16 +19,10 @@ before_cache:
1019
env:
1120
global:
1221
- CRATE_NAME=mdbook
13-
- TARGET=x86_64-unknown-linux-gnu
14-
15-
install:
16-
- sh ci/install.sh
17-
- export PATH=$PATH:$HOME/.cargo/bin
1822

1923
script:
20-
- cargo build --all --no-default-features
21-
- cargo build --verbose
22-
- cargo test --verbose
24+
- cargo test --all
25+
- cargo test --all --no-default-features
2326

2427
before_deploy:
2528
- sh ci/before_deploy.sh

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ build: false
3636

3737
# Equivalent to Travis' `script` phase
3838
test_script:
39-
- cargo build --verbose
40-
- cargo test --verbose
39+
- cargo test --all
40+
- cargo test --all --no-default-features
4141

4242
before_deploy:
4343
# Generate artifacts for release
44-
- cargo build --release
44+
- cargo rustc --bin mdbook --release -- -C lto
4545
- mkdir staging
4646
- copy target\release\mdbook.exe staging
4747
- cd staging

ci/install.sh

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

0 commit comments

Comments
 (0)