forked from GoliGoliTV/goligoli-backend-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (56 loc) · 1.32 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
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: stable
- rust: beta
fast_finish: true
cache:
cargo: true
# directories:
# - /var/lib/docker
sudo: required
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.22.0
- DATABASE_URL=postgres://username:password@localhost/diesel_demo
addons:
apt:
packages:
- binutils-dev
- cmake
- docker-ce
- gcc
- libcurl4-openssl-dev
- libdw-dev
- libelf-dev
- libiberty-dev
- postgresql
- postgresql-contrib
- libpq-dev
before_install:
- sudo /etc/init.d/postgresql stop
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker --version
- docker-compose --version
- docker-compose up -d
- sleep 30
- docker container ls
- docker-compose logs
before_script:
- rustup component add rustfmt-preview
- cargo install diesel_cli --no-default-features --features postgres --force
script:
- cargo fmt --all -- --check
- cargo build --verbose --all
- RUST_LOG=arangors=trace cargo test --verbose --all
notifications:
email:
on_success: never