Skip to content

Commit e4b6229

Browse files
committed
chore: remove windows ci on appveyor, use github workflow instead
1 parent 04fdf3a commit e4b6229

File tree

2 files changed

+24
-63
lines changed

2 files changed

+24
-63
lines changed

appveyor.yml

Lines changed: 22 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
# https://github.com/cdcseacave/openMVS/blob/master/.appveyor.yml
1212

1313
version: '{build}'
14-
image:
15-
- Ubuntu2004
16-
- Visual Studio 2017
14+
image: Ubuntu2004
1715
build: false
1816
clone_depth: 50
1917
branches:
@@ -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/

scripts/codecov

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ cd ..
2121
export DCM_AGENT_SUPRESS_EXCEPTION_STACK=true
2222

2323
prepare_jdks::switch_to_jdk 11
24-
jvb::mvn_cmd -Pgen-code-cov clean test jacoco:report
24+
jvb::mvn_cmd -Pgen-code-cov clean test
2525

2626
prepare_jdks::switch_to_jdk 8
2727
# use -Dmaven.main.skip option fix below problem of jacoco-maven-plugin:report :
2828
#
2929
# [WARNING] Classes in bundle 'Java Dns Cache Manipulator(DCM) Lib' do not match with execution data.
3030
# For report generation the same class files must be used as at runtime.
3131
# [WARNING] Execution data for class com/alibaba/xxx/Yyy does not match.
32-
jvb::mvn_cmd -Pgen-code-cov -Dmaven.main.skip test jacoco:report coveralls:report
32+
jvb::mvn_cmd -Pgen-code-cov -Dmaven.main.skip test coveralls:report

0 commit comments

Comments
 (0)