-
Notifications
You must be signed in to change notification settings - Fork 10
/
.appveyor.yml
89 lines (78 loc) · 3.84 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
#
# Author: Hari Sekhon
# Date: 2020-02-24 16:19:35 +0000 (Mon, 24 Feb 2020)
#
# vim:ts=2:sts=2:sw=2:et
#
# https://github.com/HariSekhon/pylib
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# A p p V e y o r C I
# ============================================================================ #
# https://www.appveyor.com/docs/appveyor-yml/
image: Ubuntu
# workaround for default JDK9 have old CA certs:
#
# https://github.com/appveyor/ci/issues/3833
#
# https://www.appveyor.com/docs/getting-started-with-appveyor-for-linux/#configuring-language-stack
#
stack: jdk 15
skip_commits:
files:
- docs/*
- '**/*.md'
# https://www.appveyor.com/docs/how-to/ssh-to-build-worker/
environment:
APPVEYOR_SSH_KEY: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvihSRU+YjBKvKiacDfUoZ7ghoVMcwNh4cWIYUNFGZosXOzNtyOcBpIb71TCgLFhOd+aMWKXCEC67BpNSIjt+a/FLD27AwmgVHv6cPlE3G0JJ9zmIrNmx9511dshTsxUW2O0SbYG+3InuO7FUkSrld+kA1OucyjgmZU7/+Cs9shpAEOaIVYmGlpDGRucAHpwtckvdgRTtnA3WNZ/Qg1vU6Ik4Xm03vjrW6lSiuTffYO1kbdcMQ4IZBlzfmovOtXQ0PomvN5NMCpgOyQuoNlvyS11tOXoqNiWOkiLE15XEzAQth9hHbNiH8jHJbAtkHqWWh0KK4IUyNGvoL6QfNxsTlw== hari@anotherdimension
# enable SSH session accessible via my public key
#init:
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
# more useful at end to leverage .appveyor.yml tweaks like disabling broken mssql repo/dependencies, checking out project and building the core stuff happen first so we don't have to do all that manually in SSH session
on_finish:
# set this in Settings -> Environment dynamically instead of here
#- sh: export APPVEYOR_SSH_BLOCK=true
#
# workaround for https://github.com/appveyor/ci/issues/3373
# and https://github.com/appveyor/ci/issues/3384
#
# has since been added to AppVeyor's own scripts:
#
# https://github.com/appveyor/ci/pull/3385
#
#- sh: curl -sflL 'https://raw.githubusercontent.com/HariSekhon/pylib/master/install/install_openssh.sh' | bash -e -
#
# https://www.appveyor.com/docs/how-to/ssh-to-build-worker/
- sh: if [ "$APPVEYOR_SSH_BLOCK" = true ]; then curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -; fi
install:
# workaround for:
# Some packages could not be installed. This may mean that you have
# requested an impossible situation or if you are using the unstable
# distribution that some required packages have not yet been created
# or been moved out of Incoming.
# The following information may help to resolve the situation:
#
# The following packages have unmet dependencies:
# mssql-server : Depends: libsasl2-modules-gssapi-mit but it is not going to be installed
# E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
# pylib/Makefile.in:272: recipe for target 'apt-packages' failed
# make[2]: *** [apt-packages] Error 123
# make[2]: Leaving directory '/home/appveyor/projects/pylib'
# pylib/Makefile.in:212: recipe for target 'system-packages' failed
#
# adding "|| :" to the end of these commands causes them to be silently ignored!
- sudo sed -i '/https:\/\/packages.microsoft.com\/ubuntu\/.*\/mssql-server/d' /etc/apt/sources.list
- sudo apt purge -yq --allow-change-held-packages mssql-server
# this prevents conflicts installing default-jdk - see https://github.com/appveyor/ci/issues/3411
#- dpkg -l | awk '/openjdk/{print $2}' | DEBIAN_FRONTEND=noninteractive xargs sudo apt-get remove -y --allow-change-held-packages
- setup/ci_bootstrap.sh
- make
test_script:
- make test
build: off