mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
add ci
This commit is contained in:
1 parent
51db31bdae
commit
bcfc75f706
7 files changed
+84
-7
No files matched your search
@@ -1,5 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Licensed 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. See accompanying LICENSE file.
|
||||
|
||||
|
||||
set -ex
|
||||
|
||||
source $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Licensed 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. See accompanying LICENSE file.
|
||||
|
||||
set -ex
|
||||
|
||||
source $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Licensed 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. See accompanying LICENSE file.
|
||||
|
||||
set -e
|
||||
|
||||
if [ $TRAVIS_OS_NAME == "linux" ]; then
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Licensed 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. See accompanying LICENSE file.
|
||||
|
||||
set -e
|
||||
|
||||
: ${CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/cpp-build}
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Licensed 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. See accompanying LICENSE file.
|
||||
|
||||
set -e
|
||||
|
||||
JAVA_DIR=${TRAVIS_BUILD_DIR}/java
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Licensed 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. See accompanying LICENSE file.
|
||||
|
||||
set -e
|
||||
|
||||
PYTHON_DIR=$TRAVIS_BUILD_DIR/python
|
||||
|
||||
@@ -58,9 +58,11 @@ git archive $release_hash --prefix $tag/ -o $tarball
|
||||
|
||||
# download apache rat
|
||||
curl https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.12/apache-rat-0.12.jar > apache-rat-0.12.jar
|
||||
|
||||
RAT="java -jar apache-rat-0.12.jar -d "
|
||||
|
||||
# generate the rat report
|
||||
java -jar apache-rat-0.12.jar \
|
||||
-d cpp/src \
|
||||
$RAT cpp/src \
|
||||
-e ".*" \
|
||||
-e mman.h \
|
||||
-e "*_generated.h" \
|
||||
@@ -70,22 +72,24 @@ java -jar apache-rat-0.12.jar \
|
||||
../apache-arrow-0.1.0.tar.gz > rat_cpp.txt
|
||||
UNAPPROVED_CPP=`cat rat_cpp.txt | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`
|
||||
|
||||
java -jar apache-rat-0.12.jar \
|
||||
-d format \
|
||||
$RAT format \
|
||||
-e ".*" \
|
||||
../apache-arrow-0.1.0.tar.gz > rat_format.txt
|
||||
UNAPPROVED_FORMAT=`cat rat_format.txt | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`
|
||||
|
||||
java -jar apache-rat-0.12.jar \
|
||||
-d python/src \
|
||||
$RAT python/src \
|
||||
-e ".*" \
|
||||
-e status.cc \
|
||||
-e status.h \
|
||||
../apache-arrow-0.1.0.tar.gz > rat_python.txt
|
||||
UNAPPROVED_PYTHON=`cat rat_python.txt | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`
|
||||
|
||||
$RAT ci \
|
||||
-e ".*" \
|
||||
../apache-arrow-0.1.0.tar.gz > rat_ci.txt
|
||||
UNAPPROVED_CI=`cat rat_ci.txt | grep "Unknown Licenses" | head -n 1 | cut -d " " -f 1`
|
||||
|
||||
UNAPPROVED=$(($UNAPPROVED_CPP + $UNAPPROVED_FORMAT + $UNAPPROVED_PYTHON))
|
||||
UNAPPROVED=$(($UNAPPROVED_CPP + $UNAPPROVED_FORMAT + $UNAPPROVED_PYTHON + $UNAPPROVED_CI))
|
||||
|
||||
if [ "0" -eq "${UNAPPROVED}" ]; then
|
||||
echo "No unnaproved licenses"
|
||||
|
||||
Reference in new issue
Block a user