forked from rust-lang/crates.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (48 loc) · 1.13 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
language: rust
rust: stable
sudo: false
dist: trusty
cache:
directories:
- $HOME/.yarn-cache
before_install:
- nvm install 6.10.0
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
- npm config set spin false
- npm install -g yarn
install:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
- yarn
- yarn run bower install
- cargo install diesel_cli --debug --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH
before_script:
- diesel database setup
script:
- cargo build
- cargo test
- yarn run test
after_success:
- travis-cargo coveralls --no-sudo
addons:
postgresql: "9.5"
apt:
sources:
- kalakris-cmake
packages:
- cmake
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
matrix:
include:
- rust: nightly-2017-03-04
env: CLIPPY=YESPLEASE
script:
- cargo rustc --lib --features "lint" -- -Zno-trans
env:
global:
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
notifications:
email:
on_success: never