-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (46 loc) · 1.89 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
sudo: true
language: rust
script:
- cargo build --release --verbose --all && cargo test --release --verbose --all
rust:
- stable
os:
- linux
- osx
- windows
addons:
apt:
packages:
- libssl-dev
before_install:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo apt-get -qq update
&& sudo apt-get install -y libasound2-dev libudev-dev;
fi
before_deploy:
- if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
mv target/release/klocki.exe target/release/klocki-windows.exe;
fi
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
cargo install cargo-bundle && cargo bundle --release
&& mv target/release/bundle/deb/*.deb target/release/klocki-linux.deb;
fi
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
cargo install cargo-bundle && cargo bundle --release
&& pushd target/release/bundle/osx
&& zip -r klocki-mac.zip klocki.app
&& popd
&& mv target/release/bundle/osx/klocki-mac.zip target/release/klocki-mac.zip;
fi
deploy:
provider: releases
api_key:
secure: UrsXfy9noE68JKh8XifMo8/cDHGG/+q51bvrWHEPil8hY2Pjb+X51PIVfGayNZcaatNvGbzj4gzxonKmtQ+bqnYxqou3YrEAQmxzk4lN4lZ7YnyIILYgZH3agUeSUNBExN0E7LGY3gpL0+xpkSNTJ2V8kq18tP0QqPGvnffccIK9E23+1tqZ6x6sAbFfRvr4drkIGk0/Yo8ZGxXejAC12EAXdabpXkii0pYyJ6l+FCXTYJua0l+9wHwdHuHgsf2810qvEoPMa9Gz5uRrcZodSITGCZ268EHExYWXXKyg75anUBaPzUXF2quO/mFYb0JtIWKA5s+4X3Z+dnV+L3326odtKZAKzO1/oNpdBFDSGSI7sVUTGPmCsTzljMQW9Az7FcpM3G6vTgNCs3MnE3QIqCnJ79cSdl0jQfgF2HzFGdYqdemi0OBrpyOWZy5R104d2d3pPyYlYqWXUCO6oLvuLlVInPVA53AtwsS0P6SN7WPtzpbwN6si4Rr00swZJa5SA0fB5s18GafWMusPs/xVgOJrk9tvIJB05iJ54Io0MwpYtvqy2lQFFmP7RJEsqNFlwCrv5jVRkkY0Zvgi7AYBxBTKtF5HAOta5b6cdZwQXsAv5CQlbYvdhhUMEkl0rtTkkrLUw9xHCCqs/a/ub/oZNhwWNG5cPlKv5L53/68pXc8=
file_glob: true
file:
- "target/release/klocki-windows.exe"
- "target/release/klocki-linux.deb"
- "target/release/klocki-mac.zip"
skip_cleanup: true
on:
tags: true