-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (70 loc) · 1.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: cpp
branches:
only:
- master
- stable
except:
- /^(?i:release)-.*$/
- /^(?i:stable)-.*$/
jobs:
include:
- name: Windows
os: windows
python: 3.8
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"
- choco install -y 7zip.install
script:
- ./build.bat
after_success:
- dir
- cd build
- cd package
- 7z a VScript-Windows.zip -tzip -mx9 addons scripts
- name: Linux
dist: bionic
python: 3.8
compiler: clang
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
packages:
- clang-10
- p7zip-full
env:
- CC=clang-10
- CXX=clang++-10
- SMBRANCH=1.10-dev
- MMBRANCH=1.11-dev
before_script:
- chmod +x ./build.sh
script:
- ./build.sh
after_success:
- ls -l
- cd build
- cd package
- 7z a VScript-Linux.zip -tzip -mx9 addons scripts >nul
before_deploy:
- git config --local user.name "Kxnrl"
- git config --local user.email "[email protected]"
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then export TRAVIS_TAG=release-$TRAVIS_BUILD_NUMBER ; fi
- git tag $TRAVIS_TAG
deploy:
provider: releases
skip_cleanup: true
api_key: $token
file:
- VScript-Linux.zip
- VScript-Windows.zip
on:
repo: Kxnrl/sm-ext-VScript
all_branches: true