You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by uw...@apache.org on 2018/04/02 16:57:43 UTC

[arrow] branch master updated: ARROW-2376: [Rust] Travis builds the Rust library

This is an automated email from the ASF dual-hosted git repository.

uwe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e27cf5  ARROW-2376: [Rust] Travis builds the Rust library
7e27cf5 is described below

commit 7e27cf511558a92c598bae330958d9c86a721b22
Author: Andy Grove <an...@gmail.com>
AuthorDate: Mon Apr 2 18:57:22 2018 +0200

    ARROW-2376: [Rust] Travis builds the Rust library
    
    For example build see:
    
    https://travis-ci.org/apache/arrow/jobs/360935073
    
    Author: Andy Grove <an...@gmail.com>
    
    Closes #1819 from andygrove/rust_travis and squashes the following commits:
    
    9d747b0 <Andy Grove> working on travis build for Rust
    fbb9728 <Andy Grove> working on travis build for Rust
    88af655 <Andy Grove> working on travis build for Rust
    beabeb2 <Andy Grove> working on travis build for Rust
    e88c2d4 <Andy Grove> working on travis build for Rust
---
 .travis.yml                 |  6 ++++++
 ci/travis_detect_changes.py |  4 ++--
 ci/travis_env_common.sh     |  1 +
 ci/travis_script_rust.sh    | 28 ++++++++++++++++++++++++++++
 4 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 03bc8e2..c3e08b9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -192,6 +192,12 @@ matrix:
     - $TRAVIS_BUILD_DIR/ci/travis_before_script_c_glib.sh
     script:
     - $TRAVIS_BUILD_DIR/ci/travis_script_c_glib.sh
+  - language: rust
+    rust: stable
+    before_script:
+    - if [ $ARROW_CI_RUST_AFFECTED != "1" ]; then exit; fi
+    script:
+    - $TRAVIS_BUILD_DIR/ci/travis_script_rust.sh
 
 after_failure:
 - COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)
diff --git a/ci/travis_detect_changes.py b/ci/travis_detect_changes.py
index d60b132..5295d55 100644
--- a/ci/travis_detect_changes.py
+++ b/ci/travis_detect_changes.py
@@ -26,7 +26,7 @@ import subprocess
 
 perr = functools.partial(print, file=sys.stderr)
 
-LANGUAGE_TOPICS = ['c_glib', 'cpp', 'java', 'js', 'python']
+LANGUAGE_TOPICS = ['c_glib', 'cpp', 'java', 'js', 'python', 'rust']
 
 ALL_TOPICS = LANGUAGE_TOPICS + ['integration', 'site']
 
@@ -127,7 +127,7 @@ def get_affected_topics(affected_files):
         elif p in ('java', 'js'):
             affected[p] = True
             affected['integration'] = True
-        elif p in ('c_glib', 'integration', 'python', 'site'):
+        elif p in ('c_glib', 'integration', 'python', 'site', 'rust'):
             affected[p] = True
 
     return affected
diff --git a/ci/travis_env_common.sh b/ci/travis_env_common.sh
index 416977c..46e02f1 100755
--- a/ci/travis_env_common.sh
+++ b/ci/travis_env_common.sh
@@ -27,6 +27,7 @@ export ARROW_C_GLIB_DIR=$TRAVIS_BUILD_DIR/c_glib
 export ARROW_JAVA_DIR=${TRAVIS_BUILD_DIR}/java
 export ARROW_JS_DIR=${TRAVIS_BUILD_DIR}/js
 export ARROW_INTEGRATION_DIR=$TRAVIS_BUILD_DIR/integration
+export ARROW_RUST_DIR=${TRAVIS_BUILD_DIR}/rust
 
 export CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/cpp-build
 
diff --git a/ci/travis_script_rust.sh b/ci/travis_script_rust.sh
new file mode 100755
index 0000000..89554f6
--- /dev/null
+++ b/ci/travis_script_rust.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+
+RUST_DIR=${TRAVIS_BUILD_DIR}/rust
+
+pushd $RUST_DIR
+
+cargo test
+
+popd

-- 
To stop receiving notification emails like this one, please contact
uwe@apache.org.