travis: deploy waf to gh releases

This commit is contained in:
Alibek Omarov 2019-10-18 01:02:48 +03:00
parent 40bbcdf889
commit 315b2cf7de
2 changed files with 41 additions and 16 deletions

View File

@ -2,6 +2,9 @@ language: python
git: git:
depth: 50 depth: 50
submodules: true submodules: true
jobs:
include:
- stage: test
addons: addons:
apt: apt:
packages: packages:
@ -11,10 +14,17 @@ dist: xenial
python: python:
- "2.7" # python2 never dies - "2.7" # python2 never dies
- "3.4" # latest version that supports WinXP - "3.4" # latest version that supports WinXP
- "3.7" # latest stable - "3.8" # latest stable
cache: pip cache: pip
env: env:
- TYPE="ext" - TYPE="ext"
- TYPE="noext" - TYPE="noext"
script: script:
- bash run-tests.sh $TYPE - bash run-tests.sh $TYPE
- stage: deploy
os: linux
dist: xenial
script:
- bash build-waf.sh
after_script:
- bash scripts/continious-upload.sh waf-ext waf-noext

View File

@ -0,0 +1,15 @@
##################################
#
# GitHub Releases
#
##################################
set +x
# Disabled until GitHub sends prereleases to email
wget -O upload.sh "https://raw.githubusercontent.com/FWGS/uploadtool/master/upload.sh"
chmod +x upload.sh
export GITHUB_TOKEN=$GH_TOKEN
./upload.sh $*