forked from alibaba/transmittable-thread-local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (38 loc) · 1.47 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
version: '{build}'
os: Windows Server 2012
build: off
clone_depth: 5
branches:
except:
- travis-ci.*
environment:
matrix:
- JAVA_HOME: "C:\\Program Files (x86)\\Java\\jdk1.8.0"
- JAVA_HOME: "C:\\Program Files\\Java\\jdk1.8.0"
- JAVA_HOME: "C:\\Program Files\\Java\\jdk9"
- JAVA_HOME: "C:\\Program Files\\Java\\jdk10"
init:
- ps: "ls 'C:/Program Files/Java/jdk*'"
- ps: "ls 'C:/Program Files (x86)/Java/jdk*'"
install:
- cmd: SET PATH=%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-Xmx768m -XX:MaxPermSize=128m
- cmd: SET JAVA_OPTS=-Xmx768m -XX:MaxPermSize=128m
- "ECHO JAVA_HOME=%JAVA_HOME%, HOMEPATH=%HOMEPATH%, PATH=%PATH%"
- cmd: ./mvnw.cmd --version
test_script:
- ./mvnw.cmd clean install --batch-mode
- ./mvnw.cmd dependency:copy-dependencies -DincludeScope=test
- rm target/dependency/javassist*
- echo "Run Agent test"
- ps: |
$ttl_jar=Get-ChildItem target\transmittable-thread-local-*.jar -Exclude *-sources.jar | Select-Object -ExpandProperty FullName
$cp=Get-ChildItem target\dependency\*.jar | Select-Object -ExpandProperty FullName
$cp=$cp + 'target\test-classes'
$cp=$cp -join ';'
echo "java -Xmx256m -Xms256m -javaagent:$ttl_jar -cp $cp -ea com.alibaba.ttl.threadpool.agent.AgentCheck"
$output=java -Xmx256m -Xms256m -javaagent:$ttl_jar -cp $cp -ea com.alibaba.ttl.threadpool.agent.AgentCheck 2>&1
$output.CategoryInfo.TargetName | Out-Default
cache:
- C:\maven\
- C:\Users\appveyor\.m2\