-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
41 lines (41 loc) · 1.09 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
language: rust
services:
- docker
cache:
yarn: true
cargo: true
rust:
- stable
- beta
- nightly
env:
- NODE_VERSION=11 CC=clang CXX=clang++ PATH=$HOME/protoc/bin:$PATH
before_install:
- nvm install $NODE_VERSION
- go get -v -d google.golang.org/grpc
- go get -v -d -t github.com/golang/protobuf/...
- curl -L https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip -o /tmp/protoc.zip
- unzip /tmp/protoc.zip -d "$HOME"/protoc
- mkdir -p "$HOME"/src && ln -s "$HOME"/protoc "$HOME"/src/protobuf
install:
- cd eventific/playground && yarn
before_script:
- psql -c "CREATE USER admin WITH PASSWORD 'password';" -U postgres
- docker-compose up -d localstack
script:
- cargo build --no-default-features
- cargo build --all-features
- cargo test --all-features
after_script:
- docker-compose down
matrix:
allow_failures:
- rust: nightly
fast_finish: true
deploy:
- provider: cargo
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_RUST_VERSION = stable && $TRAVIS_OS_NAME = linux"
branch: master