forked from JMRI/JMRI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (40 loc) · 1.37 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
version: '{build}'
clone_depth: 50
skip_commits:
# don't spend time building merge-PR-on-GitHub commits
# quotes needed in the following because of the pound sign
message: "/Merge pull request #[1-9][0-9]* from /"
install:
# Available choices on https://www.appveyor.com/docs/windows-images-software/#java
- SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0
# - echo JAVA_HOME %JAVA_HOME%
- SET GECKODRIVER=C:\Tools\WebDriver
- SET CHROMEDRIVER=C:\Tools\WebDriver\chromedriver.exe
- SET PATH=%JAVA_HOME%\bin;%GECKODRIVER%;%CHROMEDRIVER%;%PATH%
# - echo PATH %PATH%
# following need to be done after PATH is set
- java -version
- javac -version
- mvn -version
build: off
environment:
global:
MAVEN_OPTS: "-Xmx2048M"
before_test:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/set-screenresolution.ps1'))
- ps: Set-ScreenResolution 1280 768
test_script:
- ps: |
mvn test -P appveyor --batch-mode
after_test:
# upload results to Appveyor
# This works, but the Appveyor display is unreliable.
#- ps: |
# $wc = New-Object 'System.Net.WebClient'
# $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit-results.xml))
deploy: off
artifacts:
- path: instanceManagerSequence.txt
- path: tests.log
cache:
- C:\Users\appveyor\.m2 -> pom.xml