Deploy metadata validator on tagged builds.

Travis will deploy the metadata validator to a GitHub release for
any tagged build that passes the tests. If a release does not
already exist, it will be created, otherwise the file will be
added to the existing release.

The masterlist repositories can then use the deployed binary
instead of having to build the binary from source themselves on
every Travis build.

The api_key entry was generated by the Travis CLI tool using my
GitHub account details.
This commit is contained in:
Oliver Hamlet
2015-07-20 11:57:38 +01:00
parent 47307d2b66
commit 3ba20ff94d
+15
View File
@@ -47,6 +47,21 @@ before_script:
script: make tests && ./tests
before_deploy:
# Build the metadata editor
- make metadata-validator
- tar -pczf metadata-validator.tar.gz metadata-validator
deploy:
provider: releases
api_key:
secure: NXzSdk+TrMSRRaCf0hpCv0LS5Ow+LJTsI5pymUThljk2w7QEQMws3lET82W4fnVLYTB3hde94g2tT2oclzQzdbg6l9E6uNwv6mznu8ovTzvOLwnOAvWXtA7aB6ovxu1WrkCkKfcBB0sk8Ezt7UejQu5o0G09z699coWeuUxLFJk=
file: metadata-validator.tar.gz
skip_cleanup: true
on:
repo: loot/loot
tags: true
notifications:
irc:
channels: