mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Add support for CI on Windows
Closes gh-865
This commit is contained in:
@@ -72,6 +72,9 @@ resources:
|
|||||||
repository: initializr
|
repository: initializr
|
||||||
access_token: ((github-release-notes-access-token))
|
access_token: ((github-release-notes-access-token))
|
||||||
pre_release: false
|
pre_release: false
|
||||||
|
- name: 24h
|
||||||
|
type: time
|
||||||
|
source: {interval: 24h}
|
||||||
jobs:
|
jobs:
|
||||||
- name: build-initializr-ci-image
|
- name: build-initializr-ci-image
|
||||||
plan:
|
plan:
|
||||||
@@ -118,6 +121,16 @@ jobs:
|
|||||||
silent: true
|
silent: true
|
||||||
icon_emoji: ":concourse:"
|
icon_emoji: ":concourse:"
|
||||||
username: concourse-ci
|
username: concourse-ci
|
||||||
|
- name: windows-build
|
||||||
|
serial: true
|
||||||
|
public: true
|
||||||
|
plan:
|
||||||
|
- get: 24h
|
||||||
|
trigger: true
|
||||||
|
- get: git-repo
|
||||||
|
- task: build-project
|
||||||
|
tags: [WIN64]
|
||||||
|
file: git-repo/ci/tasks/build-project-windows.yml
|
||||||
- name: build-pull-requests
|
- name: build-pull-requests
|
||||||
serial: true
|
serial: true
|
||||||
public: true
|
public: true
|
||||||
@@ -195,6 +208,9 @@ groups:
|
|||||||
- name: "Build"
|
- name: "Build"
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
|
- name: "Windows Build"
|
||||||
|
jobs:
|
||||||
|
- windows-build
|
||||||
- name: "Build Pull Requests"
|
- name: "Build Pull Requests"
|
||||||
jobs:
|
jobs:
|
||||||
- "build-pull-requests"
|
- "build-pull-requests"
|
||||||
|
|||||||
3
ci/scripts/build-project-windows.bat
Executable file
3
ci/scripts/build-project-windows.bat
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
SET "JAVA_HOME=C:\opt\jdk1.8.0_161"
|
||||||
|
cd git-repo
|
||||||
|
./mvnw clean install
|
||||||
6
ci/tasks/build-project-windows.yml
Normal file
6
ci/tasks/build-project-windows.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
platform: windows
|
||||||
|
inputs:
|
||||||
|
- name: git-repo
|
||||||
|
run:
|
||||||
|
path: git-repo/ci/scripts/build-project-windows.bat
|
||||||
Reference in New Issue
Block a user