From 3ba20ff94d3a3a95b774cc79dd79051dc44e52e3 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 20 Jul 2015 11:46:02 +0100 Subject: [PATCH] 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. --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7703ff91..5bf5370a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: