1111# https://github.com/cdcseacave/openMVS/blob/master/.appveyor.yml
1212
1313version : ' {build}'
14- image :
15- - Ubuntu2004
16- - Visual Studio 2017
14+ image : Ubuntu2004
1715build : false
1816clone_depth : 50
1917branches :
@@ -25,61 +23,24 @@ environment:
2523 MAVEN_OPTS : " -Xmx768m -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
2624 JAVA_OPTS : " -Xmx768m"
2725
28- for :
29- -
30- # ------------------
31- # Ubuntu
32- # ------------------
33- matrix :
34- only :
35- - image : Ubuntu2004
36-
37- install :
38- - git submodule update --init
39- test_script :
40- - scripts/integration_test
41-
42- after_test :
43- - ./scripts/codecov
44- # remove self maven install
45- - rm -rf $HOME/.m2/repository/com/alibaba/dns-cache-manipulator*
46- # remove maven install file
47- - rm -rf $HOME/.m2/wrapper/dists/*/*/*.zip
48- # # remove sdkman install file
49- - rm -rf $HOME/.sdkman/archives/*
50-
51- cache :
52- # if cache size is exceed appveyor limit:
53- # Compressed cache item cannot exceed 1,048,576,000 bytes
54- # skip below maven cache:
55- - $HOME/.m2/
56- - $HOME/.sdkman/
57- -
58- # ------------------
59- # Windows
60- # ------------------
61- matrix :
62- only :
63- - image : Visual Studio 2017
64- install :
65- - ps : " ls 'C:/Program Files/Java/jdk*'"
66- - ps : " ls 'C:/Program Files (x86)/Java/jdk*'"
67- - echo JAVA_HOME=%JAVA_HOME%, HOMEPATH=%HOMEPATH%, PATH=%PATH%
68-
69- test_script :
70- # test under java 11
71- - set JAVA_HOME=C:\Program Files\Java\jdk11
72- - ./mvnw.cmd -DperformRelease -P!gen-sign -V --no-transfer-progress clean install
73- # test under java 8
74- - set JAVA_HOME=C:\Program Files\Java\jdk1.8.0
75- - ./mvnw.cmd -DperformRelease -P!gen-sign -V --no-transfer-progress surefire:test
76-
77- after_test :
78- # remove self maven install
79- - ps : Remove-Item -r -fo $home\.m2\repository\com\alibaba\dns-cache-manipulator*
80- # remove maven install file
81- - ps : Remove-Item -Path $HOME\.m2\wrapper\dists\*\*\*.zip
82-
83- cache :
84- # https://www.appveyor.com/docs/build-cache/
85- - ' %HOMEDRIVE%%HOMEPATH%\.m2\'
26+ install :
27+ - git submodule update --init
28+
29+ test_script :
30+ - scripts/integration_test
31+
32+ after_test :
33+ - ./scripts/codecov
34+ # remove self maven install
35+ - rm -rf $HOME/.m2/repository/com/alibaba/dns-cache-manipulator*
36+ # remove maven install file
37+ - rm -rf $HOME/.m2/wrapper/dists/*/*/*.zip
38+ # # remove sdkman install file
39+ - rm -rf $HOME/.sdkman/archives/*
40+
41+ cache :
42+ # if cache size is exceed appveyor limit:
43+ # Compressed cache item cannot exceed 1,048,576,000 bytes
44+ # skip below maven cache:
45+ - $HOME/.m2/
46+ - $HOME/.sdkman/
0 commit comments