-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (41 loc) · 1.55 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
language: rust
matrix:
include:
- os: osx
rust: nightly
env: TARGET=x86_64-apple-darwin
- os: linux
dist: trusty
rust: nightly
env: TARGET=x86_64-unknown-linux-gnu
addons:
apt:
packages:
- clang-3.9
- curl
- libclang-3.9-dev
cache:
cargo: true
directories:
- "$HOME/lib"
install:
- source ./ci/libsodium-build.sh
- source ./ci/libsodium-env.sh
script:
- cargo build --verbose --target "${TARGET}"
- cargo test --verbose
before_deploy:
- cargo build --release --verbose --target "${TARGET}"
- mkdir -p release
- cp target/${TARGET}/release/sneakercopy release/sneakercopy-${TRAVIS_TAG}-${TARGET}
- gzip release/sneakercopy-${TRAVIS_TAG}-${TARGET}
deploy:
provider: releases
api_key:
secure: "kLeQ6JLgo6uAygC1O6T8oUMGaARKCr9GDv2+5idEl+DlOapouPfQ+NfNxnkK1ZhiPZajFp1Ai0K8udOYX5BK3MW+aIFFMuv/xskGwKF8kk2t8Tdd15Vu4U8vCq00Lv5NHegGtSOXyy7dTkD0XKoauuFxtx/BiPHzjMknDLThpVJz4BKv9w2mT7kldR3XgfROGgDABvvuuHolx2tax0NlDmQU2TC73WLChjfawc6K9ZtgBXiOjPdA5wbIxJON8+pYUy3QWZxG0a7OBdSTV35w2ZzvWXIOBTM5zJnR+EV9uF/MiWXMhfMjRSAkOwhjBC6N2HBEc3+gYlDa7cmvUB1FGBW+7XCQ3/51olDeA7ScgBJG1/1GgSgJHzd9iGbxQKybP60XxUVgmEJxR9C+VY76AIMChsoJiugCEMhieRF6JDaJyABcRnTHIgznpQWvY/QkKRD97ABB1JS4CuKrAzvEXZCWSBWgOF8HKWwRJxF5N20tKWOeGVEqm/pw1TSNRUQYgs/jARUde3pZdmFQWqLXIWq2NoS3C+2nHIqC251q28x7kD4He4iraYLowlBxR+rDiGwbMoZXCKPDCYECw27PZMuwq7DOPIllfI6MZNJu6tWdc5FYbtKdVF/dKgkndSvdezwCC3Bqra6l4Se6Wik6CUDq4rBOaffQtyPHtbInU2U="
file_glob: true
file: "release/sneakercopy-*.gz"
skip_cleanup: true
on:
tags: true
branch: master