Skip to content

Commit bcfc75f

Browse files
committed
add ci
1 parent 51db31b commit bcfc75f

File tree

7 files changed

+84
-7
lines changed

7 files changed

+84
-7
lines changed

ci/travis_before_script_cpp.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
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+
316
set -ex
417

518
source $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh

ci/travis_conda_build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
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+
315
set -ex
416

517
source $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh

ci/travis_install_conda.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
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+
315
set -e
416

517
if [ $TRAVIS_OS_NAME == "linux" ]; then

ci/travis_script_cpp.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
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+
315
set -e
416

517
: ${CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/cpp-build}

ci/travis_script_java.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
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+
315
set -e
416

517
JAVA_DIR=${TRAVIS_BUILD_DIR}/java

ci/travis_script_python.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
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+
315
set -e
416

517
PYTHON_DIR=$TRAVIS_BUILD_DIR/python

dev/release/02-source.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ git archive $release_hash --prefix $tag/ -o $tarball
5858

5959
# download apache rat
6060
curl 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
7173
UNAPPROVED_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
7778
UNAPPROVED_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
8585
UNAPPROVED_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

9094
if [ "0" -eq "${UNAPPROVED}" ]; then
9195
echo "No unnaproved licenses"

0 commit comments

Comments
 (0)