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