add runsamples; proceed with build even not dev command prompt for VS
This commit is contained in:
Родитель
ea5c734cf6
Коммит
fcf476fd85
|
@ -40,3 +40,4 @@ run/
|
||||||
tools/
|
tools/
|
||||||
*.log
|
*.log
|
||||||
lib/
|
lib/
|
||||||
|
target/
|
||||||
|
|
32
appveyor.yml
32
appveyor.yml
|
@ -1,28 +1,12 @@
|
||||||
version: 1.4.1-SNAPSHOT.{build}
|
version: 1.4.1-SNAPSHOT.{build}
|
||||||
# install maven and set paths (thanks to http://www.yegor256.com/2015/01/10/windows-appveyor-maven.html)
|
|
||||||
install:
|
|
||||||
- ps: |
|
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
||||||
if (!(Test-Path -Path "C:\maven" )) {
|
|
||||||
(new-object System.Net.WebClient).DownloadFile(
|
|
||||||
'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-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.2.5\bin;%JAVA_HOME%\bin;%PATH%
|
|
||||||
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
|
|
||||||
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
#build C# solution and scala project
|
#build C# solution and scala project
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: >-
|
- cmd: SET PATH=%JAVA_HOME%\bin;%PATH%
|
||||||
cd scala
|
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
|
||||||
|
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
|
||||||
|
- cmd: Build.cmd
|
||||||
|
|
||||||
mvn package
|
# scripts to run after tests
|
||||||
|
after_test:
|
||||||
cd ..\csharp
|
- cmd: Runsamples.cmd --validate
|
||||||
|
|
||||||
Build.cmd
|
|
||||||
|
|
21
precheck.cmd
21
precheck.cmd
|
@ -1,14 +1,6 @@
|
||||||
@echo OFF
|
@echo OFF
|
||||||
|
|
||||||
set precheck="bad"
|
set precheck="ok"
|
||||||
|
|
||||||
set version="unknown"
|
|
||||||
|
|
||||||
if "%VisualStudioVersion%" == "" ( goto vstudiowarning)
|
|
||||||
|
|
||||||
@REM VS 2013 == Version 12; VS 2015 == Version 14
|
|
||||||
set version=%VisualStudioVersion:~0,2%
|
|
||||||
if %version% LSS 12 ( goto vstudiowarning)
|
|
||||||
|
|
||||||
if not exist "%JAVA_HOME%\bin\java.exe" (
|
if not exist "%JAVA_HOME%\bin\java.exe" (
|
||||||
@echo.
|
@echo.
|
||||||
|
@ -20,10 +12,17 @@ if not exist "%JAVA_HOME%\bin\java.exe" (
|
||||||
@echo.
|
@echo.
|
||||||
@echo ============================================================================================
|
@echo ============================================================================================
|
||||||
@echo.
|
@echo.
|
||||||
|
set precheck="bad"
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
|
|
||||||
set precheck="ok"
|
set version="unknown"
|
||||||
|
if "%VisualStudioVersion%" == "" ( goto vstudiowarning)
|
||||||
|
|
||||||
|
@REM VS 2013 == Version 12; VS 2015 == Version 14
|
||||||
|
set version=%VisualStudioVersion:~0,2%
|
||||||
|
if %version% LSS 12 ( goto vstudiowarning)
|
||||||
|
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
:vstudiowarning
|
:vstudiowarning
|
||||||
|
@ -36,5 +35,3 @@ goto :eof
|
||||||
@echo.
|
@echo.
|
||||||
@echo ============================================================================================
|
@echo ============================================================================================
|
||||||
@echo.
|
@echo.
|
||||||
goto :eof
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче