This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
73 lines (65 loc) · 2.18 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
sudo: required
before_cache:
- rm -rf /home/travis/.cargo/registry
cache:
directories:
- /home/travis/.cargo
git:
depth: 5
addons:
apt:
packages:
- libasound2-dev
matrix:
include:
# Linux
- os: linux
language: rust
rust: stable
env: PACKAGE_NAME="hinterland-$TRAVIS_OS_NAME.tar.gz"
before_script:
- rustup component add clippy-preview
script:
- cargo clippy -- -D warnings
- cargo test
- cargo build --release
before_deploy: ci/build_artifact.sh
# OSX
- os: osx
language: rust
rust: stable
env:
- TARGET=x86_64-apple-darwin
- PACKAGE_NAME="hinterland-$TRAVIS_OS_NAME.tar.gz"
before_script:
- rustup component add clippy-preview
script:
- cargo clippy -- -D warnings
- cargo test
- cargo build --release
before_deploy: ci/build_artifact.sh
# Windows
- os: windows
language: rust
rust: stable
env:
- TARGET=x86_64-pc-windows-msvc
- PACKAGE_NAME="hinterland-$TRAVIS_OS_NAME.zip"
before_script:
- rustup component add clippy-preview
script:
- cargo clippy -- -D warnings
- cargo test
- cargo build --release
before_deploy:
- powershell -executionpolicy bypass -File "ci\build_artifact.ps1"
deploy:
provider: releases
skip_cleanup: true
overwrite: true
api_key:
secure: p7m7Fe9rquO/GcLtbp+vu1HWUG+HxFr0DwBdfW96e/P8RAMH+R0u8QcNjb9n8/tH5K5XZcj2gMAthBjKSASNoXDiJ96ukru2m8hKugXt9QWirhwTJKFj1UUhQeSPFeK9aS99zwgnulYjdfEbWA7IomfH79GF9AKQMx78/fh9SLMz2C5SdfGSE6RXgw8/ASE4yef9UOO6ttCs2Vb3mUEw/mM/aZmGGZ49GCd4qBT2gHjzdXPXgCt18+Cqt/S/aYQia90AEHlK2DUX2w/IauPmNNOu4xqwijz8HXBfyBPxZerRBS0yVqUiMkNRYfLLdFgaWWGnjcOPUpHQMOLTDXO1LfLV0zNSAZPU8MT8cm9lFDJgCZWMYA+h+wxkFQgT6NSH0M/avjwkCpK1NLfhEcX79xKZ/Nv6FhZ+ZjeauVkNIeYL4v4SWteFfzMoCV0+oCmyYnyf1925p7MS5+qKpHUj6pBkJeS0Br17RyFLhGzFYht+5ejz1aStguHqcliYpioKikOa1WV0X+p9VpBH1RMWSCG/DpmZgtveX8kck8O4YKHHs7RYfH7k61TWh503f45Y51N7KlizgCUGmdQWz0ju7jU0e8yr7PZmiAPSYWX82t1D3a53atvethhOAMYc4+LbvPiT8TuHw/rrTEd7RUL41YfzN/KK9IyklhNQEDlE51I=
file: "$PACKAGE_NAME"
on:
tags: true
repo: Laastine/hinterland