-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
33 lines (32 loc) · 903 Bytes
/
.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
language: rust
rust:
- stable
os:
- linux
- osx
matrix:
fast_finish: true
before_script:
- rustup component add rustfmt-preview
- rustup component add clippy-preview
script:
- cargo fmt --all -- --check
- cargo clippy --all -- -D clippy::pedantic
- cargo build --release
- chmod +x target/release/apk-decompiler
- mkdir apk-decompiler
- mv target/release/apk-decompiler apk-decompiler/apk-decompiler
- mv lib apk-decompiler/lib
# - gzip -k -f output
- tar -zcvf apk-decompiler.tar.gz apk-decompiler/
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv apk-decompiler.tar.gz apk_decompiler_linux.tar.gz ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mv apk-decompiler.tar.gz apk_decompiler_osx.tar.gz ; fi
deploy:
provider: releases
api_key: $gh_key
file:
- apk_decompiler_linux.tar.gz
- apk_decompiler_osx.tar.gz
skip_cleanup: true
on:
tags: true