Skip to content

Commit

Permalink
DRILL-6890: AppVeyor CI for Drill builds
Browse files Browse the repository at this point in the history
- add appveyor.yml
- removing build without tests from Tavis build
- exclude image files from apache-maven-rat license checks
  • Loading branch information
vdiravka committed Dec 10, 2018
1 parent e478213 commit 61dadaf
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 21 deletions.
41 changes: 41 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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}'
clone_depth: 10000

# Space and plus are here to catch unit tests that fail to support folders with spaces
#clone_folder: C:\projects\drill + # TODO: clone_folder with space fails on Windows

# branches to build
branches:
# whitelist
only:
- master
- /DRILL-[0-9]{4}/
matrix:
fast_finish: true
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: ubuntu1804
JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-amd64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
build_script: >
mvn clean install -DskipTests=true -Drat.skip=false -Dlicense.skip=false
--batch-mode -Djna.nosys=true
cache:
- C:\Users\appveyor\.m2
- $HOME\.m2
20 changes: 2 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
# (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
# 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: 2
general:
jobs:
Expand All @@ -22,7 +22,6 @@ jobs:
image: circleci/classic:latest
parallelism: 1 # TODO: 1. Configuring Parallel Jobs for Running Tests https://circleci.com/docs/2.0/parallelism-faster-jobs/


working_directory: ~/drill

steps:
Expand Down Expand Up @@ -60,27 +59,22 @@ jobs:

steps:
- checkout

- run:
name: Update packages list
command:
sudo apt-get update

- run:
name: Install java 9
command:
sudo apt-get -y install openjdk-9-jdk

- run:
name: Set default java 9
command:
sudo update-java-alternatives --set java-1.9.0-openjdk-amd64

- run:
name: Update maven version
command:
curl -fsSL https://git.io/vpDIf | bash -s -- 3.6.0

- run:
name: Install libaio1.so library for MySQL integration tests
command:
Expand All @@ -100,27 +94,22 @@ jobs:

steps:
- checkout

- run:
name: Update packages list
command:
sudo apt-get update

- run:
name: Install java 10
command:
sudo apt-get -y install openjdk-10-jdk

- run:
name: Set default java 10
command:
sudo update-java-alternatives --set java-1.10.0-openjdk-amd64

- run:
name: Update maven version
command:
curl -fsSL https://git.io/vpDIf | bash -s -- 3.6.0

- run:
name: Install libaio1.so library for MySQL integration tests
command:
Expand All @@ -140,27 +129,22 @@ jobs:

steps:
- checkout

- run:
name: Update packages list
command:
sudo apt-get update

- run:
name: Install java 11
command:
sudo apt-get -y install openjdk-11-jdk

- run:
name: Set default java 11
command:
sudo update-java-alternatives --set java-1.11.0-openjdk-amd64

- run:
name: Update maven version
command:
curl -fsSL https://git.io/vpDIf | bash -s -- 3.6.0

- run:
name: Install libaio1.so library for MySQL integration tests
command:
Expand Down
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# (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
# 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,
Expand All @@ -21,5 +21,11 @@ jdk:
cache:
directories:
- "$HOME/.m2"
install: MAVEN_OPTS="-Xms1G -Xmx1G" mvn install --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true
script: mvn install -Drat.skip=false -Dlicense.skip=false -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest,org.apache.drill.categories.SecurityTest" -DforkCount=1 -DmemoryMb=2560 -DdirectMemoryMb=4608 -Ptravis
#install: >
# MAVEN_OPTS="-Xms1G -Xmx1G" mvn install --batch-mode
# -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests=true
# -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DdependencyLocationsEnabled=false
script: >
MAVEN_OPTS="-Xms1G -Xmx1G" mvn install -DexcludedGroups="org.apache.drill.categories.SlowTest,
org.apache.drill.categories.UnlikelyTest,org.apache.drill.categories.SecurityTest" -DforkCount=1 -DmemoryMb=2560
-DdirectMemoryMb=4608 -Ptravis -DdependencyLocationsEnabled=false -Dassembly.skipAssembly=true
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@
<exclude>**/*.cproject</exclude>
<exclude>**/*.drill</exclude>
<exclude>**/.drill.parquet_metadata</exclude>
<exclude>**/*.bmp</exclude>
<exclude>**/*.pcapng</exclude>
<!-- TODO DRILL-4336: try to avoid the need to add this -->
<exclude>dependency-reduced-pom.xml</exclude>
</excludes>
Expand Down

0 comments on commit 61dadaf

Please sign in to comment.