-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
109 lines (91 loc) · 3.77 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# https://github.com/golang/dep/blob/master/appveyor.yml
# https://github.com/gohugoio/hugo/blob/master/appveyor.yml
# https://github.com/joefitzgerald/go-plus/blob/master/appveyor.yml<Paste>
# https://blog.markvincze.com/setting-up-an-appveyor-pipeline-for-golang/
# https://github.com/joaope/LocalAppVeyor
# brew cask install dotnet dotnet-sdk
# dotnet tool install -g localappveyor --version 0.5.0-alpha9
# LocalAppVeyor lint --token ...
image: Visual Studio 2017
# version: 1.0.0.{build}
platform: x64
branches:
only:
- master
skip_non_tags: true
skip_commits:
message: /.*\[skip appveyor\].*/
environment:
CYG_MIRROR: http://cygwin.mirror.constant.com
# CGO_ENABLED: 0 # Required (1) for go test -race
GOPATH: C:\gopath
# DOT_BUILD_TAGS:
# OS: windows
matrix:
# - CYG_ARCH: x86
# CYG_ROOT: C:/cygwin
# CYG_SETUP: setup-x86.exe
# CYG_CACHE: C:/cygwin/var/cache/setup
- CYG_ARCH: x86_64
CYG_ROOT: C:/cygwin64
CYG_SETUP: setup-x86_64.exe
CYG_CACHE: C:/cygwin64/var/cache/setup
cache:
- '%CYG_CACHE%'
init:
- git config --global core.autocrlf input
# - set PATH=%PATH:C:\MinGW\bin;=%
# - C:\msys64\usr\bin\sh.exe --login /c/projects/dot/scripts/setup-win.sh
# - C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
- set PATH=%PATH%;%CYG_ROOT%\bin;%GOPATH%\bin
- go version
- go env
# clones and cd's to path
clone_folder: C:\gopath\src\github.com\LEI\dot
# install:
# # autoconf,autogen,automake,cygwin-devel,git,gcc-core,gcc-g++,libncurses-devel,libprotobuf-devel,make,openssh,openssl-devel,perl,perl_pods,pkg-config,tmux,zlib-devel
# # - '%CYG_ROOT%\setup-x86_64.exe --quiet-mode --no-shortcuts --upgrade-also --packages git,wget'
# # - '%CYG_ROOT%\%CYG_SETUP% --quiet-mode --no-shortcuts --upgrade-also --site $CYG_MIRROR --local-package-dir "%CYG_CACHE%" --packages git'
# - '%CYG_ROOT%\%CYG_SETUP% --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages gawk,git,wget'
# # > NUL 2>&1
# - '%CYG_ROOT%\bin\cygcheck -dc cygwin'
# # - gem install asciidoctor
# # - pip install docutils
# # - go get ...
# before_build:
# # - 'bash -lc "cygcheck -dc cygwin"'
# # - 'bash -lc "git config --local core.symlinks true"'
# # - 'bash -lc "git clean --force --quiet -x -d"'
# # - 'bash -lc "git reset --hard"'
# # - c:\cygwin setup.exe -q -P wget,tar,qawk,bzip2,subversion,vim
# - 'bash -lc "curl -sSL https://rawgit.com/transcode-open/apt-cyg/master/apt-cyg -o apt-cyg"'
# # - 'bash -lc "apt-cyg --version"'
# - 'bash -lc "install apt-cyg /bin"'
# - 'bash -lc "wget --version"' # FIXME
# # - 'bash -lc "echo $PATH"'
# # - echo %PATH%
# # - cp C:\projects\dot\.dotrc.yml C:\Users\appveyor\.dotrc.yml
# # - 'bash -lc "cp /c/gopath/src/github.com/LEI/dot/.dotrc.yml $HOME/.dotrc.yml"'
build_script:
# - 'bash -lc "./autogen.sh"'
# - 'bash -lc "./configure --enable-compile-warnings=error --enable-examples"'
# - 'bash -lc "make distcheck VERBOSE=1 V=1"'
# - echo %USERPROFILE%
- go run build.go vendor -only check install # test:race
# - go run build.go vendor -only check build:windows
# - 'bash -lc "cp /c/gopath/src/github.com/LEI/dot/dist/windows_amd64/dot /usr/local/bin/dot"'
# - 'bash -lc "ls -la /usr/local/bin"'
# - 'bash -lc "dot --version"'
- touch C:\Users\appveyor\.dotnc
# - 'bash -lc "touch $HOME/.dotnc"'
- dot --release
- 'bash -lc "dot sync --verbose"'
# - 'bash -lc "dot install --packages --verbose"'
- 'bash -lc "dot install --dry-run --verbose"'
# - choco install --yes --no-progress docker-compose
# - OS=windows go run build.go -v docker
# - docker-compose build test_os
# - docker-compose up test_os
# artifacts:
# - path: .\dist\windows_amd64\dot
# name: "Dot Windows binary"