You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/01/22 10:46:08 UTC
[syncope] branch 2_1_X updated: AppVeyor fix
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new f1b5dbf AppVeyor fix
f1b5dbf is described below
commit f1b5dbfb19a874265a495e4cdeff22d3cd644083
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Jan 22 11:45:49 2019 +0100
AppVeyor fix
---
appveyor.yml | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/appveyor.yml b/appveyor.yml
index 95610ee..66a04e2 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -19,23 +19,34 @@ os: Windows Server 2012
init:
- git config --global core.autocrlf true
install:
- - cinst git
- - cinst patch
+ # Make unix-compatible patch.exe available to the build by copying it from
+ # Git\usr\bin (that we remove from PATH) to another directory and adding it to
+ # PATH; the reason we copy it is that logic below removes
+ # C:\Program Files\Git\usr\bin from Path to avoid build issue resulting from
+ # sh.exe being on the path.
+ - cmd: mkdir "C:\Program Files\PatchFromGit"
+ - ps: copy "C:\Program Files\Git\usr\bin\patch.exe" "C:\Program Files\PatchFromGit"
+ - ps: copy "C:\Program Files\Git\usr\bin\msys*.dll" "C:\Program Files\PatchFromGit"
+ - cmd: SET PATH=C:\Program Files\PatchFromGit;%PATH%
+
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile('https://www.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-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.4\bin;%JAVA_HOME%\bin;=%;
+ - cmd: SET PATH=C:\maven\apache-maven-3.5.4\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0
- cmd: SET M2_HOME=C:\maven\apache-maven-3.5.4
- cmd: SET MAVEN_OPTS=-Xmx4g
- cmd: SET JAVA_OPTS=-Xmx4g
+
+ - echo %PATH%
build_script:
- mvn --show-version --quiet -T 1C -PskipTests,all,without-eclipse --batch-mode
test_script:
- - mvn -T 1C clean install --batch-mode
+ - cd fit\core-reference
+ - mvn clean verify
cache:
- C:\maven\
- C:\Users\appveyor\.m2