-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
75 lines (66 loc) · 1.63 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
language: csharp
mono: none
dotnet: 2.1.301
matrix:
include:
- os: linux # Ubuntu 14.04
dist: trusty
sudo: required
env: OS=linux arch=x64
- os: linux # Ubuntu 14.04 (ARM)
dist: trusty
sudo: required
env: OS=arm arch=arm
- os: osx # OSX 10.12
osx_image: xcode9
env: OS=osx arch=x64
before_install:
- brew update
- curl https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
- chmod +x dotnet-install.sh
- ./dotnet-install.sh --channel 2.0
- export PATH=$PATH:~/.dotnet/
- ulimit -n 1024
- os_platform=darwin
# branches to build
branches:
only:
- master
env:
global:
- log_prefix=[$TRAVIS_OS_NAME]
- configuration=Release
- os_platform=linux
- CSC_IDENTITY_AUTO_DISCOVERY=false
cache:
directories:
- $HOME/.npm
- $HOME/.electron
- $HOME/.nuget/packages
- /usr/share/dotnet/sdk/ # dotnet path for linux
- /Users/travis/.dotnet/sdk/ # dotnet path for mac
# Work around NuGet issue #2163
# https://github.com/NuGet/Home/issues/2163
# https://github.com/travis-ci/travis-ci/issues/7728
install:
- nvm install 8.11.4; nvm use 8.11.4
before_script:
- if [ -z "$TRAVIS_TAG" ] ; then TRAVIS_TAG=cd-unstable; fi
script:
- chmod +x build.sh
- "./build.sh"
deploy:
provider: releases
api_key:
secure: $secure_github_key # this key is set on the Travis build page
file_glob: true
file:
- "$TRAVIS_BUILD_DIR/FullNode.UI/app-builds/*.deb"
- "$TRAVIS_BUILD_DIR/FullNode.UI/app-builds/*.tar.gz"
- "$TRAVIS_BUILD_DIR/FullNode.UI/app-builds/*.dmg"
skip_cleanup: true
overwrite: true
prerelease: true
on:
branch: master
tags: true