Merge pull request #36 from DanielSWolf/feature/ci-publish

Build and upload release artifacts through CI
This commit is contained in:
Daniel Wolf 2018-04-27 21:40:49 +02:00 committed by GitHub
commit f7cca4c789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 3 deletions

28
.appveyor.yml Normal file
View File

@ -0,0 +1,28 @@
image: Visual Studio 2015
environment:
BOOST_ROOT: C:\Libraries\boost_1_66_0
# If the Gradle Daemon is used, AppVeyor waits forever for it to terminate
GRADLE_OPTS: -Dorg.gradle.daemon=false
init:
# Print Remote Desktop information for debugging porposes
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build_script:
- mkdir build
- cd build
- cmake .. -G "Visual Studio 14 2015"
- cmake --build . --config Release --target package
- cd %APPVEYOR_BUILD_FOLDER%
test_script:
- build\rhubarb\Release\runTests.exe
artifacts:
- path: build\rhubarb-lip-sync-*.zip
deploy:
provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
description: ''
auth_token:
secure: Gk7y8Cb9ImDBthgL56W1QMWDEp4oIcbUeKgXnkiBsy7G+V6H59MPXv0ZC7Zht8+3
artifact: /.*\.zip/
draft: true
on:
appveyor_repo_tag: true

View File

@ -17,10 +17,26 @@ matrix:
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=g++-5 .. && make && ./rhubarb/runTests
- cmake -DCMAKE_CXX_COMPILER=g++-5 ..
- cmake --build . --config Release --target package
- ./rhubarb/runTests
- os: osx
osx_image: xcode7.3
script:
- mkdir build
- cd build
- cmake .. && make && ./rhubarb/runTests
- cmake ..
- cmake --build . --config Release --target package
- ./rhubarb/runTests
deploy:
# Deploy to GitHub releases
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: "./rhubarb-lip-sync-*.zip"
skip_cleanup: true
on:
tags: true
tag_name: $TRAVIS_TAG
name: $TRAVIS_COMMIT_MESSAGE
draft: true

View File

@ -8,8 +8,9 @@
:H: Ⓗ
:X: Ⓧ
image:https://img.shields.io/travis/DanielSWolf/rhubarb-lip-sync/master.svg["Build Status", link="https://travis-ci.org/DanielSWolf/rhubarb-lip-sync"]
image:https://img.shields.io/twitter/follow/RhubarbLipSync.svg?style=social&label=Follow["Twitter", link="https://twitter.com/RhubarbLipSync"]
image:https://img.shields.io/appveyor/ci/DanielSWolf/rhubarb-lip-sync/master.svg?label=Windows%20build["Windows build status", link="https://ci.appveyor.com/project/DanielSWolf/rhubarb-lip-sync"]
image:https://img.shields.io/travis/DanielSWolf/rhubarb-lip-sync/master.svg?label=OS%20X%20/%20Linux%20build["OS X / Linux build status", link="https://travis-ci.org/DanielSWolf/rhubarb-lip-sync"]
---