Skip to content

Commit

Permalink
chore: add windows build based on rAapprVveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGeraud committed Nov 7, 2017
1 parent 1e58da0 commit 7dee1c0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions appveyor.yml
@@ -0,0 +1,37 @@
#
# Copyright (C) 2015 The Gravitee team (http://gravitee.io)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

version: '{build}'
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile(
'http://www.apache.org/dist/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET PATH=C:\maven\apache-maven-3.5.2\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
build_script:
- mvn clean package --batch-mode -DskipTest
test_script:
- mvn clean verify --batch-mode
cache:
- C:\maven\
- C:\Users\appveyor\.m2

0 comments on commit 7dee1c0

Please sign in to comment.