forked from hbons/SparkleShare
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
95 lines (91 loc) · 3.32 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: csharp
cache:
directories:
- upload
jobs:
# for debugging enable next two lines to allow an os to fail without quitting pipeline
# allow_failures:
# language: csharp
# include:
# - stage: "Compile for Mac"
# os: osx
# before_install:
# - mkdir -p ./upload
# - wget https://dl.xamarin.com/XamarinforMac/Mac/xamarin.mac-3.0.0.393.pkg
# - sudo installer -pkg xamarin.mac*.pkg -target /
# script:
# - msbuild /target:SparkleShare_Mac:Rebuild /p:Configuration=ReleaseDist /p:Platform="Any CPU" SparkleShare.sln -m
# - ./SparkleShare/Mac/postBuild.sh ./SparkleShare/Mac/bin/ReleaseDist
# - ./SparkleShare/Mac/packReleaseDist.sh ./SparkleShare/Mac/bin/ReleaseDist/SparkleShare.app
# before_deploy:
# - cd SparkleShare/Mac/bin/ReleaseDist
# - zip -r SparkleShare.zip SparkleShare.app
# - cd ../../../..
# - cp ./SparkleShare/Mac/bin/ReleaseDist/SparkleShare.zip ./upload/SparkleShare-macos-nightly.zip
# deploy: &deploy_base
# provider: releases
# api_key: ${GITHUB_TOKEN}
# file: ./upload/SparkleShare-macos-nightly.zip
# skip_cleanup: true
# draft: true
# name: Nightly CI Build
# body: This is a automated CI Build. Do not use for production environments!
# on:
# branch:
# - feature/WindowsTravisCi
# tags: false
# - stage: "Compile for Linux"
# os: linux
# services:
# - docker
# before_install:
# - mkdir -p ./upload
# - docker pull ubuntu:latest
# script:
# - docker build --file scripts/ci/Dockerfile --tag sparkleshare:nightly .
# before_deploy:
# - export DEPLOY_FILE=`docker run --name container sparkleshare:nightly find / -name sparkleshare*.tar.gz`
# - cp ${DEPLOY_FILE} ./upload/SparkleShare-linux-nightly.tar.gz
# - touch ./upload/SparkleShare-linux-nightly.tar.gz
# deploy:
# <<: *deploy_base
# draft: true
# file: ./upload/SparkleShare-linux-nightly.tar.gz
- stage: "Compile for Windows"
os: windows
mono: none
before_install:
- mkdir -p ./upload
# - choco install netfx-4.5.2-devpack
# - choco install windows-sdk-8.0
- powershell Install-WindowsFeature Net-Framework-Core
- choco install -y wixtoolset --version=3.11.2
- choco install tartool
- choco install unzip
script:
- ./SparkleShare/Windows/build.cmd installer
before_deploy:
- mv ./SparkleShare/Windows/SparkleShare.msi ./upload/SparkleShare-windows-nightly.msi
deploy: &deploy_base
provider: releases
api_key: ${GITHUB_TOKEN}
file: ./upload/SparkleShare-windows-nightly.msi
skip_cleanup: true
draft: true
name: Nightly CI Build
body: This is a automated CI Build. Do not use for production environments!
on:
branch:
- feature/WindowsTravisCi
tags: false
# deploy:
# <<: *deploy_base
# draft: true
# file: ./upload/SparkleShare-windows-nightly.msi
#notifications:
# webhooks:
# urls:
# - https://webhooks.gitter.im/e/f1a1178baa78d1162385
# on_success: change
# on_failure: always
# on_start: never