Skip to content

Commit 5502b04

Browse files
committed
Add Windows build in CircleCI config
1 parent 7ed563c commit 5502b04

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.circleci/config.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22

33
jobs:
4-
build:
4+
build-linux:
55
docker:
66
- image: cimg/openjdk:11.0
77
working_directory: ~/hoverfly-java
@@ -31,6 +31,27 @@ jobs:
3131
paths:
3232
- hoverfly-java/
3333

34+
build-windows:
35+
machine:
36+
image: windows-server-2019-standard
37+
working_directory: C:/hoverfly-java
38+
steps:
39+
- checkout
40+
- run:
41+
name: Set up Gradle Wrapper & Java
42+
command: |
43+
choco install -y openjdk11
44+
choco install -y gradle
45+
gradlew --version
46+
- run:
47+
name: Run Tests
48+
command: |
49+
.\gradlew.bat clean test jacocoTestReport
50+
- persist_to_workspace:
51+
root: C:/hoverfly-java/
52+
paths:
53+
- ./
54+
3455
deploy:
3556
docker:
3657
- image: cimg/openjdk:11.0
@@ -58,10 +79,12 @@ workflows:
5879
version: 2
5980
build:
6081
jobs:
61-
- build
82+
- build-linux
83+
- build-windows
6284
- deploy:
6385
requires:
64-
- build
86+
- build-linux
87+
- build-windows
6588
filters:
6689
branches:
6790
only: master

0 commit comments

Comments
 (0)