-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
44 lines (36 loc) · 1.85 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
language: cpp
os:
- linux
- windows
sudo: required
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
matrix:
- SMBRANCH=1.8-dev
- SMBRANCH=1.9-dev
- SMBRANCH=master
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t messagebot . ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y visualstudio2017buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81 --add Microsoft.VisualStudio.Component.WinXP" ; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run -w /build --env SMBRANCH=$SMBRANCH -v $(pwd):/build messagebot bash build.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then ./build.bat ; fi
deploy:
- provider: releases
skip_cleanup: true
api_key:
secure: gqk3iV6SYdc/4MgXAwLY860GXwr9siKp67ke/5F1BpsSWPOBnq8CwkkVyGRjWhrskrXJIBYFu9n2n1BXxs5tx2iuwPVTCzAqzHlmXn5H6XAveY4Aibi7tqx9kXSX0Qhwg6lUF1LhG74/IhCTxaEpjUhadKCv3e6eGfQxdqEG/KSvCc92QJDWZmfgTap0gJiZFwOc1wJzxQrqZexbkXDgFmBBdKEM7bBaec+g99UkQBY2k8mAlZ097O6PpBLCEJnPcyD0YoAl1xCW7f7Bn7727vw0EuRVncn1JzU09WUvyJKx9FbgsxtXTtyVdeNi+UyQNZqmAVl/fwzjTF40cH8DFyQrAUE97Av19HGfGZnLLjjhJSVkQ+5U0sBbRsW0gjEhTB6639J+wadE1ZTh5XJP9dhDYq+vnmte/NddKum67Uv/DvtCtUqFrqc1uH6nR6fxWOVMa7TE6vjSgGfPGLG19ogjYpCvFecUR1B9OrS2+AAxn6ncBeFIytmCQ1uLZ8/6Xhk1KuJ6jNHwqDUUr+TWjCPjXCOaUSGeDSdVpHO+u4K2Txq5XGcjRBmevcPVkPZqgHNQN3hFlgUG/L2JiAmA1ZLzZCTrYdFPyMord+GQC7N7loQBhjUOEYo5IC9/NebmDtcPisNDoYtmFI3i4WbLaDnUQK8wulso9qKWErWQqxU=
file:
- Release/messagebot.ext.so
- msvc17/Release/messagebot.ext.dll
- ca-bundle.crt
on:
condition: "$SMBRANCH = 1.9-dev"
repo: dordnung/MessageBot
all_branches: true
tags: true