File tree Expand file tree Collapse file tree 7 files changed +84
-7
lines changed
Expand file tree Collapse file tree 7 files changed +84
-7
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License. See accompanying LICENSE file.
14+
15+
316set -ex
417
518source $TRAVIS_BUILD_DIR /ci/travis_install_conda.sh
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License. See accompanying LICENSE file.
14+
315set -ex
416
517source $TRAVIS_BUILD_DIR /ci/travis_install_conda.sh
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License. See accompanying LICENSE file.
14+
315set -e
416
517if [ $TRAVIS_OS_NAME == " linux" ]; then
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License. See accompanying LICENSE file.
14+
315set -e
416
517: ${CPP_BUILD_DIR=$TRAVIS_BUILD_DIR / cpp-build}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License. See accompanying LICENSE file.
14+
315set -e
416
517JAVA_DIR=${TRAVIS_BUILD_DIR} /java
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License. See accompanying LICENSE file.
14+
315set -e
416
517PYTHON_DIR=$TRAVIS_BUILD_DIR /python
Original file line number Diff line number Diff line change @@ -58,9 +58,11 @@ git archive $release_hash --prefix $tag/ -o $tarball
5858
5959# download apache rat
6060curl https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.12/apache-rat-0.12.jar > apache-rat-0.12.jar
61+
62+ RAT=" java -jar apache-rat-0.12.jar -d "
63+
6164# generate the rat report
62- java -jar apache-rat-0.12.jar \
63- -d cpp/src \
65+ $RAT cpp/src \
6466 -e " .*" \
6567 -e mman.h \
6668 -e " *_generated.h" \
@@ -70,22 +72,24 @@ java -jar apache-rat-0.12.jar \
7072 ../apache-arrow-0.1.0.tar.gz > rat_cpp.txt
7173UNAPPROVED_CPP=` cat rat_cpp.txt | grep " Unknown Licenses" | head -n 1 | cut -d " " -f 1`
7274
73- java -jar apache-rat-0.12.jar \
74- -d format \
75+ $RAT format \
7576 -e " .*" \
7677 ../apache-arrow-0.1.0.tar.gz > rat_format.txt
7778UNAPPROVED_FORMAT=` cat rat_format.txt | grep " Unknown Licenses" | head -n 1 | cut -d " " -f 1`
7879
79- java -jar apache-rat-0.12.jar \
80- -d python/src \
80+ $RAT python/src \
8181 -e " .*" \
8282 -e status.cc \
8383 -e status.h \
8484 ../apache-arrow-0.1.0.tar.gz > rat_python.txt
8585UNAPPROVED_PYTHON=` cat rat_python.txt | grep " Unknown Licenses" | head -n 1 | cut -d " " -f 1`
8686
87+ $RAT ci \
88+ -e " .*" \
89+ ../apache-arrow-0.1.0.tar.gz > rat_ci.txt
90+ UNAPPROVED_CI=` cat rat_ci.txt | grep " Unknown Licenses" | head -n 1 | cut -d " " -f 1`
8791
88- UNAPPROVED=$(( $UNAPPROVED_CPP + $UNAPPROVED_FORMAT + $UNAPPROVED_PYTHON ))
92+ UNAPPROVED=$(( $UNAPPROVED_CPP + $UNAPPROVED_FORMAT + $UNAPPROVED_PYTHON + $UNAPPROVED_CI ))
8993
9094if [ " 0" -eq " ${UNAPPROVED} " ]; then
9195 echo " No unnaproved licenses"
You can’t perform that action at this time.
0 commit comments