mirror of https://github.com/apache/druid.git
41 lines
1.8 KiB
Bash
Executable File
41 lines
1.8 KiB
Bash
Executable File
#!/bin/bash -e
|
|
# 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.
|
|
|
|
MAVEN_OPTS='-Xmx3000m'
|
|
|
|
mkdir -p target
|
|
|
|
# Generate dependency reports and checks they are valid. When running on Travis CI, 2 cores are available
|
|
# (https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system).
|
|
docs/_bin/generate-license-dependency-reports.py . target --clean-maven-artifact-transfer --parallel 2
|
|
|
|
docs/_bin/generate-license.py licenses/APACHE2 licenses.yaml LICENSES.BINARY --dependency-reports target/license-reports
|
|
|
|
# Build binary distribution. Note that the below command internally runs 'docs/_bin/generate-license.py' without license
|
|
# check which overwrites LICENSES.BINARY file generated by the above command. This must be fine since both commands are
|
|
# supposed to generate the same contents.
|
|
mvn -B --fail-at-end install -Pdist -Pbundle-contrib-exts \
|
|
-pl '!benchmarks' \
|
|
-Danimal.sniffer.skip=true \
|
|
-Dcheckstyle.skip=true \
|
|
-Denforcer.skip=true \
|
|
-Dforbiddenapis.skip=true \
|
|
-Dmaven.javadoc.skip=true \
|
|
-Dpmd.skip=true \
|
|
-DskipTests \
|
|
-Dspotbugs.skip=true \
|
|
-T1.0C
|