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,19 +2,29 @@ language: python
git:
depth: 50
submodules: true
addons:
apt:
packages:
- build-essential
os: linux
dist: xenial
python:
- "2.7" # python2 never dies
- "3.4" # latest version that supports WinXP
- "3.7" # latest stable
cache: pip
env:
- TYPE="ext"
- TYPE="noext"
script:
- bash run-tests.sh $TYPE
jobs:
include:
- stage: test
addons:
apt:
packages:
- build-essential
os: linux
dist: xenial
python:
- "2.7" # python2 never dies
- "3.4" # latest version that supports WinXP
- "3.8" # latest stable
cache: pip
env:
- TYPE="ext"
- TYPE="noext"
script:
- 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 $*