Skip to content

Commit 0c79593

Browse files
authored
Merge pull request #1290 from CvX/travis-improvement
Travis config improvements
2 parents 7d6fc89 + 0244864 commit 0c79593

File tree

1 file changed

+28
-32
lines changed

1 file changed

+28
-32
lines changed

.travis.yml

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ dist: trusty
44

55
branches:
66
except:
7-
- staging.tmp
7+
- staging.tmp
88

99
cache:
1010
cargo: true
11-
12-
addons:
13-
chrome: stable
11+
directories:
12+
- $HOME/.npm
1413

1514
env:
1615
global:
17-
# See https://git.io/vdao3 for details.
18-
- JOBS=1
16+
- JOBS=1 # See https://git.io/vdao3 for details.
17+
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
18+
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
19+
- CARGO_TARGET_DIR=target
1920

2021
before_install:
2122
- nvm install 8
@@ -27,6 +28,7 @@ before_script:
2728
- diesel database setup
2829

2930
addons:
31+
chrome: stable
3032
postgresql: "9.5"
3133
apt:
3234
sources:
@@ -42,32 +44,26 @@ matrix:
4244
allow_failures:
4345
- rust: nightly
4446
include:
45-
- rust: nightly-2018-02-13
46-
script:
47-
- cargo install --force rustfmt-nightly --vers 0.3.6
48-
- cargo fmt -- --write-mode=diff
49-
- cargo install --force clippy --vers 0.0.186
50-
- cargo clippy
51-
- rust: stable
52-
script:
53-
- cargo build
54-
- cargo test
55-
- npm install
56-
- npm test
57-
- rust: beta
58-
script:
59-
- cargo build
60-
- cargo test
61-
- rust: nightly
62-
script:
63-
- cargo build
64-
- cargo test
65-
66-
env:
67-
global:
68-
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
69-
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
70-
- CARGO_TARGET_DIR=target
47+
- rust: nightly-2018-02-13
48+
script:
49+
- cargo install --force rustfmt-nightly --vers 0.3.6
50+
- cargo fmt -- --write-mode=diff
51+
- cargo install --force clippy --vers 0.0.186
52+
- cargo clippy
53+
- rust: stable
54+
script:
55+
- cargo build
56+
- cargo test
57+
- npm install
58+
- npm test
59+
- rust: beta
60+
script:
61+
- cargo build
62+
- cargo test
63+
- rust: nightly
64+
script:
65+
- cargo build
66+
- cargo test
7167

7268
notifications:
7369
email:

0 commit comments

Comments
 (0)