-
Notifications
You must be signed in to change notification settings - Fork 579
/
.travis.yml
76 lines (65 loc) · 1.35 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: rust
sudo: required
dist: trusty
branches:
except:
- staging.tmp
cache:
cargo: true
addons:
chrome: stable
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
before_install:
- nvm install 8
- npm config set spin false
install:
- cargo install --force diesel_cli --vers 1.0.0 --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH
before_script:
- diesel database setup
addons:
postgresql: "9.5"
apt:
sources:
- kalakris-cmake
packages:
- cmake
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
matrix:
fast_finish: true
allow_failures:
- rust: nightly
include:
- rust: nightly-2018-02-13
script:
- cargo install --force rustfmt-nightly --vers 0.3.6
- cargo fmt -- --write-mode=diff
- cargo install --force clippy --vers 0.0.186
- cargo clippy
- rust: stable
script:
- cargo build
- cargo test
- npm install
- npm run lint:js
- npm test
- rust: beta
script:
- cargo build
- cargo test
- rust: nightly
script:
- cargo build
- cargo test
env:
global:
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
- CARGO_TARGET_DIR=target
notifications:
email:
on_success: never