mirror of https://github.com/inolen/redream.git
update appveyor and travis to publish to redream.io
This commit is contained in:
parent
86205daf1b
commit
944213db99
|
@ -3,10 +3,8 @@ skip_tags: true
|
||||||
image: Visual Studio 2015
|
image: Visual Studio 2015
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GITHUB_KEY:
|
DEPLOY_TOKEN:
|
||||||
secure: /DCyflM6kjhQlQU5vryk97H/2/WGoFj8pMrxCrbQeMksunq9jnKaG05pP45WpTCX
|
secure: rrBoB0/Te0kVQR3sv1Xp1OMRxz6lnLzGR1iE/u2qerSFNXYXBdgXr2YASH1UxHXyGjJeb1zXQKsu3OIks6+VnA==
|
||||||
GIT_TAG: ci-latest
|
|
||||||
BUILD_ARTIFACT: redream.x86_64-windows-HEAD.tar.gz
|
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
|
@ -14,16 +12,9 @@ build_script:
|
||||||
- cmake -G "Visual Studio 14 Win64" ..
|
- cmake -G "Visual Studio 14 Win64" ..
|
||||||
- cd ..
|
- cd ..
|
||||||
- msbuild.exe build/redream.sln /t:redream /p:Configuration=Release /p:Platform=x64
|
- msbuild.exe build/redream.sln /t:redream /p:Configuration=Release /p:Platform=x64
|
||||||
|
|
||||||
|
after_build:
|
||||||
|
- FOR /F %%A in ('git describe --tags') do SET BUILD_VERSION=%%A
|
||||||
|
- SET BUILD_ARTIFACT=redream.x86_64-windows-%BUILD_VERSION%.tar.gz
|
||||||
- tar -cvzf %BUILD_ARTIFACT% -C build/Release redream.exe
|
- tar -cvzf %BUILD_ARTIFACT% -C build/Release redream.exe
|
||||||
|
- curl -s -F "token=%DEPLOY_TOKEN%" -F "artifact=@%BUILD_ARTIFACT%" https://redream.io/deploy/%BUILD_ARTIFACT% > nul 2>&1
|
||||||
artifacts:
|
|
||||||
- path: $(BUILD_ARTIFACT)
|
|
||||||
name: archive
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
provider: GitHub
|
|
||||||
tag: $(GIT_TAG)
|
|
||||||
auth_token: $(GITHUB_KEY)
|
|
||||||
artifact: archive
|
|
||||||
prerelease: true
|
|
||||||
force_update: true
|
|
||||||
|
|
21
.travis.yml
21
.travis.yml
|
@ -26,7 +26,7 @@ matrix:
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env:
|
env:
|
||||||
- BUILD_ARCH=x86_64
|
- BUILD_ARCH=x86_64
|
||||||
- BUILD_PLATFORM=darwin
|
- BUILD_PLATFORM=mac
|
||||||
before_install:
|
before_install:
|
||||||
- brew update
|
- brew update
|
||||||
- brew outdated cmake || brew upgrade cmake
|
- brew outdated cmake || brew upgrade cmake
|
||||||
|
@ -38,19 +38,8 @@ script:
|
||||||
- cmake -DCMAKE_BUILD_TYPE=RELEASE ..
|
- cmake -DCMAKE_BUILD_TYPE=RELEASE ..
|
||||||
- make
|
- make
|
||||||
|
|
||||||
before_deploy:
|
after_success:
|
||||||
- BUILD_ARTIFACT=redream.$BUILD_ARCH-$BUILD_PLATFORM-HEAD.tar.gz
|
- BUILD_VERSION=`git describe --tags`
|
||||||
- GIT_TAG=ci-latest
|
- BUILD_ARTIFACT=redream.$BUILD_ARCH-$BUILD_PLATFORM-$BUILD_VERSION.tar.gz
|
||||||
- tar -cvzf $BUILD_ARTIFACT redream
|
- tar -cvzf $BUILD_ARTIFACT redream
|
||||||
- git config --global user.email "builds@travis-ci.com"
|
- curl -s -F "token=$DEPLOY_TOKEN" -F "artifact=@$BUILD_ARTIFACT" https://redream.io/deploy/$BUILD_ARTIFACT > /dev/null 2>&1
|
||||||
- git config --global user.name "Travis CI"
|
|
||||||
- git tag $GIT_TAG -f
|
|
||||||
- git push --quiet --force https://$GITHUB_KEY@github.com/inolen/redream $GIT_TAG > /dev/null 2>&1
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
provider: releases
|
|
||||||
skip_cleanup: true
|
|
||||||
prerelease: true
|
|
||||||
api_key: $GITHUB_KEY
|
|
||||||
file: $BUILD_ARTIFACT
|
|
||||||
overwrite: true
|
|
||||||
|
|
Loading…
Reference in New Issue