forked from kaitoy/pcap4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
101 lines (77 loc) · 2.67 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: '{build}-{branch}'
# branches to build
branches:
# whitelist
only:
- v1
# blacklist
except:
- gh-pages
# Do not build on tags
skip_tags: true
# Skipping commits with particular message or from user
skip_commits:
message: /\[maven-release-plugin\]/
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Windows Server 2012 R2
# fetch repository as zip archive
shallow_clone: false
# environment variables
environment:
SONATYPE_NEXUS_USERNAME:
secure: DDwS0DjK9j/d79DuAlJy3A==
SONATYPE_NEXUS_PASSWORD:
secure: mr5kcUXHVYPmF+7bXPi2Ow==
# scripts that run after cloning repository
install:
# Install WinPcap
#- cmd: choco install -y winpcap
# Install nmap which includes WinPcap instead of WinPcap itself to avoid an issue where
# installation of autohotkey.portable which is used by choco install script for WinPcap
# randomly fails somehow.
- cmd: choco install -y nmap
# Install Maven
# - cmd: choco install -y maven -version 3.2.5
# Get the Maven bin directory path
# - ps: $env:MAVEN_BIN_PATH = [Environment]::GetEnvironmentVariable('M2', 'User')
# - cmd: echo %MAVEN_BIN_PATH%
# Use pre-installed Maven instead
# Set JAVA_HOME
- cmd: set JAVA_HOME=C:\Program Files\Java\jdk11
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# scripts to run before build
before_build:
- cmd: if not exist %userprofile%\.m2 (mkdir %userprofile%\.m2)
- cmd: copy /y mvn\settings.xml %userprofile%\.m2
- cmd: copy /y mvn\toolchains_appvayor_11.xml %userprofile%\.m2\toolchains.xml
- ps: if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {$env:MAVEN_PHASE = 'deploy'} else {$env:MAVEN_PHASE = 'install'}
build_script:
# Run mvn command with jna.nosys=true not to use an older jna pre-installed in AppVeyor VMs.
- cmd: mvnw -Djna.nosys=true -Djna.library.path=C:\Windows\System32\Npcap -P distribution-assembly %MAVEN_PHASE%
#---------------------------------#
# tests configuration #
#---------------------------------#
test: off
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy: off
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
- provider: Email
on_build_success: false
on_build_failure: true