Chesnay Schepler created FLINK-6510:
---------------------------------------

             Summary: Add CI integration for Windows
                 Key: FLINK-6510
                 URL: https://issues.apache.org/jira/browse/FLINK-6510
             Project: Flink
          Issue Type: Improvement
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.4.0


Several times now the compilation on Windows was broken by accident and only 
detected way down the line. We can use AppVeyor to verify that Flink can be 
compiled on Windows.

It would require us to add a {{appveyor.yml}} in the root directory of the 
repository with the following contents, and we have to ask infra to add the 
AppVeyor integration.

{code}
version: 1.0.{build}

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.3.9/binaries/apache-maven-3.3.9-bin.zip',
              'C:\maven-bin.zip'
            )
            
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", 
"C:\maven")
          }

    $env:JAVA_HOME="C:\Program Files\Java\jdk1.7.0"
    $env:PATH="C:\maven\apache-maven-3.3.9\bin" + ";" + $env:JAVA_HOME + "\bin" 
+ ";" + $env:PATH
    $env:MAVEN_OPTS="-XX:MaxPermSize=2g"
    $env:JAVA_OPTS="-XX:MaxPermSize=2g"

cache:
- C:\maven\
- C:\Users\appveyor\.m2

build_script:
- ps: mvn clean install -B "-DskipTests" "-Dmaven.javadoc.skip=true"
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to