-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
48 lines (45 loc) · 2.45 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
language: rust
rust:
- 1.40.0
script:
- cargo test --verbose
- if test -n "$TRAVIS_TAG"; then cargo build --release; fi
matrix:
include:
- os: linux
sudo: required
services:
- docker
before_install:
- docker pull centos:7
script:
- pwd
- docker run -v $PWD:/mnt --rm -t centos:7 bash -c "yum -y groupinstall 'Development Tools' && yum install -y libunwind-devel openssl-devel && curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$TRAVIS_RUST_VERSION" && source ~/.cargo/env && cd /mnt && cargo test --verbose && if test -n \"$TRAVIS_TAG\"; then cargo build --release; fi"
after_success:
- if test -n "$TRAVIS_TAG"; then ( cd target/release && tar cvzf ../../hono-admin-tool-${TRAVIS_TAG}-linux-64bit.tar.gz hat ); fi
- os: osx
after_success:
- if test -n "$TRAVIS_TAG"; then ( cd target/release && tar cvzf ../../hono-admin-tool-${TRAVIS_TAG}-macos-64bit.tar.gz hat ); fi
- os: windows
before_install:
- find /c/ -name "*.msm"
- choco install nuget.commandline
- nuget install WiX -version 3.11.1
script:
- cargo test --release --verbose
- cargo build --release
- /c/Users/travis/build/ctron/hat/WiX.3.11.1/tools/candle -dVersion=$(echo ${TRAVIS_TAG:-v0.0.0} | sed s/^v//) -arch x64 hat.wxs
- /c/Users/travis/build/ctron/hat/WiX.3.11.1/tools/light hat.wixobj -o hono-admin-tool-${TRAVIS_TAG:-untagged}-windows-x64.msi
after_success:
- if test -n "$TRAVIS_TAG"; then 7z a -tzip hono-admin-tool-${TRAVIS_TAG}-windows-64bit.zip ./target/release/hat.exe; fi
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: "rHwFs/FiMYAbGH78THLPR+S+fhW9bmKq6Jbf+SJT429834oZ4ydWHWBiwBa7f44ub9lMt9rzmRvM5SZ2e7YZmXCuQthiLKMmcXIEqGVBfux1f4U5UC/mj2+En5z2ALEfssT2BiLvpbx2xacK68BINbBI0fGA8FDKjAj7hhIvWv9ghT2B3HInrQEWjausinuFLw5PtiBY4zy/73Zg78Ju5CEgNI26in9GNu3ia48/W8wrI5U3A82tutWjZAo89td5GrXJ1sRM5sp20BtKh9AywUm+Q9xFhNh815oGmQMilhUBPVuOyoYhrADdsSb2EyFEYq6EzKt6y7eCwRLJxfgcYrDgdWAyrKUXrrZk5DfLIQLqToeiitp17IPnqQBdiHrr35GTqbhy9HlECoax2P0uU5Wrhpn3iY1lgb9iUPDdrMrUaCRo8hbbO+/ZYtjMg8LO+t6np1Qh7oLWHSiZBB4uLAB59Lk6zt3rR6mfr1ZOUULY+HFJgASQUx63gMuW4l9zGRnh3dkLDEUgfqSgJXLipVYD+4Kwq01LR8eXnX4LtoaTYM5IsrtaK7vrOuaNLwFDzy9qExZXOQfVCWuyQeoSuXAFI4mFQDsJZL8drUnu/Vspoojuc/KQ/Z/OVSbl8+1sEN0xYYXw+F7ush292XCH6ODg2FTAst9GfDhSsTU1Sc4="
on:
repo: ctron/hat
tags: true
file_glob: true
file:
- hono-admin-tool-*