forked from rabite0/hunter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (47 loc) · 1.88 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
dist: xenial
language: rust
rust: nightly
cache: cargo
branches:
only:
- /^v\d+\.\d+\.\d+.*$/
- holy
- master
matrix:
include:
# Linux
- env: TARGET=armv7-unknown-linux-gnueabihf ARCH=linux-arm-32
- env: TARGET=aarch64-unknown-linux-gnu ARCH=linux-arm-64
- env: TARGET=i686-unknown-linux-gnu ARCH=linux-intel-32
- env: TARGET=x86_64-unknown-linux-gnu ARCH=linux-intel-64
# OSX
- env: TARGET=i686-apple-darwin ARCH=macos-intel-32
os: osx
- env: TARGET=x86_64-apple-darwin ARCH=macos-intel-64
os: osx
# *BSD
- env: TARGET=i686-unknown-freebsd ARCH=bsd-intel-32
- env: TARGET=x86_64-unknown-freebsd ARCH=bsd-intel-64
install:
- command -v cross || cargo install cross
script:
- PKG_CONFIG_ALLOW_CROSS=1 cross build --target $TARGET ${TRAVIS_TAG:+"--release"}
before_deploy:
- name="hunter-$TRAVIS_BRANCH-$ARCH"
- mkdir $name
- cp target/$TARGET/release/hunter $name/
- cp README.md LICENSE $name/
- cp -r extra $name/
- GZIP=-9 tar czvf $name.tar.gz $name/*
deploy:
provider: releases
api_key:
secure: 2syUPZ4SoRnqswtvut5mDcBkV06qcCZSWUnXhyrtIMAEKq+bOd0nqChF5/OfDGNIltmTe+qLBgHQxT/48ZU2TAOgYjjNrbjLou5KgPrcXjBI+eKh3s2RCehhhFtfQ9wuusR+emupq4IuPHAGvkONawFljq4RqR/Sr1med8lWZXFCPJd8xYgEOd/MTvJ5HuH3nPMsJJ98KFBbEp65WFH0EZo9j4vv6q8HjfXz/zq/IrsN9ufqo4ccGHFkc9dhXodJG83IkUqWo0ZlxkFFxhLZ5CncJp2qjwTdulWQVwY3mCV/Pz3BUFXfIPITEJvNDMya/SQb4FGJO54DUsOUFuWk/ZAUddtSDkuMNdN16ohBMfqudYYLL/C8NWW9byzVG/f/pz3NAR2qqKl4RPNOFsJjyXSQJ/thEjm82wKkiQ+G38Ii3Gf6jm4FveGDy3CU2Nm/BWOwpW02cQxDqB71Wdo0dScaikM72UO7/XUrSJkgk654oHk9Hv5kEJlgUpFYgabEruNbZn1lC/WAZQDQBNLV9VcTX966Cm6u7azfSTHtFacCGG1wZkJnVJLSr76j24lwBM0z59bHmlTNyLxHxkRx5cjS/shebEE/cAOyeHGXwWbNoyJZFuytwB3613UJ2Zw3qgc2Y5X+GVpjkBbXdbemtDWNWi3xO+Gy0rbCjKLsYco=
file: hunter-$TRAVIS_BRANCH-$ARCH.tar.gz
skip_cleanup: yes
draft: yes
on:
tags: yes
notifications:
email:
on_success: never