forked from aws-cloudformation/cloudformation-guard
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (44 loc) · 1.91 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
language: rust
cache: cargo
matrix:
include:
- name: Linux Binary
env: TARGET=x86_64-unknown-linux-musl
rust: nightly
script: cargo build --workspace --verbose --release
addons:
apt:
packages:
- musl-tools
- name: macOS Binary
env: MACOSX_DEPLOYMENT_TARGET=10.7 TARGET=x86_64-apple-darwin
os: osx
rust: nightly
script: cargo build --workspace --verbose --release
- name: Windows Binary
os: windows
rust: nightly
script: cargo build --workspace --verbose --release
before_deploy:
- mkdir cfn-guard-$TRAVIS_OS_NAME
- |
if [[ "$TRAVIS_OS_NAME" == "windows" ]]
then
cp -f target/release/cfn-guard.exe ./cfn-guard-$TRAVIS_OS_NAME/
else
cp ./target/release/cfn-guard ./cfn-guard-$TRAVIS_OS_NAME/
fi
- cp LICENSE ./cfn-guard-$TRAVIS_OS_NAME/
- cp NOTICE ./cfn-guard-$TRAVIS_OS_NAME/
- cp ATTRIBUTION ./cfn-guard-$TRAVIS_OS_NAME/
- cp README.md ./cfn-guard-$TRAVIS_OS_NAME/
- tar czvf ./cfn-guard-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz ./cfn-guard-$TRAVIS_OS_NAME
deploy:
provider: releases
api_key:
secure: KmAvC/VoofISXnlzcfP3PDdVD4qNuoXHrf1g/6mPbRRqY1k4wET8GDaLBWsAcjY6hibqSmOrOjDV8TVzIEkKa5rfkjnh7GWPe5na4qZVvkmvmx8fHNWy6uFa0KKJxB8FG0+uPj8wtnIWutVYdWk1JTTBagRZ4l5UCm4catl4Yb3Avm4uYd3LIKRRXXmtgcc/B7E3xYQCf0tBAnx4qD4GNOs13B6h9m8jF7XZPTkRxk+vnpYB6rdlHLLKkNQ2PEP5QAdik6+eFCzTwtoP/NzOcdtCrl8aaGBJvpHGA8V+aZ/BvCn0YFfM1uW1IKp2dMDYYO0zUrWLDKT9IcG1oXh2uVduVEbMC48BVsOxIBs7NzMkXkiW/3/P3EtZ+0p/OWZr9g0CnS6sLeyGc0mLx/Tyl92yRiO44k+2AJFQSArEDn5w3+vuMQgsiK9tv0EdefPDyRzPdxarLFz3PSWrI360fZZmsUBaNuU5tMgUwOFFNrsSPjLsPUcI25BbaM+5WqFObn/bYNiUPuMpFM8X2sJT81OEQ9+gmkwUx2U0IgLUqpmcLOEncWi0NMf2bPl6KssP0NwJmwpV0u1SP0iEVoNnALNPrrsqYIkxkn7pvmlZKEcufz/7/posMA0umFiY1ABSn0aVISDJfZeXiqXRBAhIt1dPpGVvfxRc6zCA+fgl1jE=
file: "./cfn-guard-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz"
on:
repo: aws-cloudformation/cloudformation-guard
tags: true
skip_cleanup: 'true'