forked from mobile-shell/mosh
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
54 lines (46 loc) · 1.61 KB
/
appveyor.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
#
# Appveyor configuration file for CI build of Mosh on Windows (under Cygwin)
#
# For further details see http://www.appveyor.com
#
#
# Custom environment variables
#
environment:
global:
CYG_ROOT: C:\cygwin64
CYG_MIRROR: http://cygwin.mirror.constant.com
CYG_CACHE: C:\cygwin64\var\cache\setup
CYG_BASH: C:\cygwin64\bin\bash
cache:
- '%CYG_CACHE%'
#
# Do a shallow clone of the repo to speed up build
#
# clone_depth: 1
# Initialisation prior to pulling the repository
# Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
init:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- git config --global core.autocrlf input
#
# Install needed build dependencies
#
install:
- '%CYG_ROOT%\setup-x86_64.exe --quiet-mode --no-shortcuts --upgrade-also --packages autoconf,autogen,automake,cygwin-devel,git,gcc-core,gcc-g++,libncurses-devel,libprotobuf-devel,make,openssh,openssl-devel,perl,pkg-config,tmux,zlib-devel'
- '%CYG_ROOT%\bin\cygcheck -dc cygwin'
#
# Mosh uses symlinks and other Unixisms in the work dir. Fix by replacing it with a Cygwin checkout.
#
before_build:
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER && ./appveyor.sh before_build"'
# Build and test, actually.
build_script:
- 'echo Building...'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER && ./appveyor.sh build_script"'
#
# Disable tests for now
#
test: off
# on_finish:
# - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER && ./appveyor.sh wait"'