54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
language: cpp
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
except:
|
|
- /^(?i:release)-.*$/
|
|
|
|
jobs:
|
|
include:
|
|
- name: Windows
|
|
os: windows
|
|
python: 3.7
|
|
before_install:
|
|
- choco install python --version=3.8.2
|
|
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
|
env:
|
|
- SMBRANCH=1.10-dev
|
|
- MMBRANCH=1.11-dev
|
|
before_script:
|
|
- choco install -y visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
|
|
script:
|
|
- ./build.bat
|
|
- name: Linux
|
|
dist: bionic
|
|
python: 3.7
|
|
env:
|
|
- SMBRANCH=1.10-dev
|
|
- MMBRANCH=1.11-dev
|
|
before_script:
|
|
- chmod +x ./build.sh
|
|
script:
|
|
- ./build.sh
|
|
|
|
|
|
before_deploy:
|
|
- git config --local user.name "Kxnrl"
|
|
- git config --local user.email "[email protected]"
|
|
- export TRAVIS_TAG=release-$TRAVIS_OS_NAME-$TRAVIS_BUILD_NUMBER
|
|
- git tag $TRAVIS_TAG
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: $token
|
|
file:
|
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.csgo.dll
|
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.csgo.so
|
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.insurgency.dll
|
|
- build/package/addons/sourcemod/extensions/TransmitManager.ext.2.insurgency.so
|
|
- build/package/addons/sourcemod/scripting/include/TransmitManager.inc
|
|
on:
|
|
repo: Kxnrl/sm-ext-TransmitManager
|
|
skip_cleanup: true
|