-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (41 loc) · 1.8 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
dist: xenial
language: rust
sudo: required
before_install:
- rustup self update
install:
- sudo apt -qq update
- sudo apt -qq install libgpgme11-dev wget unzip libxcb-shape0-dev libxcb-xfixes0-dev
- wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
- unzip protoc-3.6.1-linux-x86_64.zip
- sudo mv bin/protoc /usr/local/bin/protoc
- rustup component add clippy
- cargo update
jobs:
include:
- stage: Test and build
script:
- cargo clippy -- -D warnings
- cargo test -- --test-threads=1
- cargo build
- stage: Build and deploy as GitHub release
script:
- cargo build --release
if: tag IS present
before_deploy:
- RELEASE_MESSAGE="$(git tag -ln --format '%(subject)' $TRAVIS_TAG)"
deploy:
provider: releases
name: $TRAVIS_TAG
body: $RELEASE_MESSAGE
prerelease: true
file: target/release/knox
overwrite: true
skip_cleanup: true
on:
tags: true
api_key:
secure: PQOknPjKBt0WKyES809g9yOYguw2HLJGm2JpXhUdmy6NObu3kVWmnW6i22BUtQ62em7/oACrcFm3qN/ZGvMwIRccqfqccbrFhtqgzfGSfIhsVCDwaKrJMhXAmQgLAU2Fg5KQcENtlMWkOBtOGJiE47pBB4E/cFjG5YOxI0/xi4fjeEJA4QbHduypBUnd5loc6LtpADFKbiHM2su1ThMQUvFThHv03UkwtHyDise2kWphg5AX/iCblO2/d90kNmCEJURlyTio8LyaF71DOc+3wz3LqkDBE90ffonb9BJFn0q8aEjVLnB+Iwd5bGA9i/9q+srmr9cNixhrfz5yc2545xgqeAY6GyqE98sOzKY3U+Yji0aES91CF3Hg82oa5c+k4ouPt+WJdwiqWl3PS/Giyh+tbhZ94QM2OcBm9FfSQpLLPSj+lGqbkbSt81KS7YJZ6+FwwN1AAYDmSHMbFy9fqoouNi15li1Y4wqC8keAeTx+IUder8n6pvZCvjBQ/gDiWbVktzJeJ8BgRYnXAv1FkQG5rabe+pA6gNuVvmNk2Ccsh7RngtmKAaHXFsHYYhTlamBDvyPDs2cUhLOYVEBofERmNh99FbvABFcf8FKcNQeHzzOp1x2fAMDctaXeKUpcZcXzehsF7UUw1azCx81UXACysMd7X1seJp8epZkJoms=
cache: cargo
before_cache:
- chmod -R a+r $HOME/.cargo