You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2017/05/13 19:53:36 UTC
arrow git commit: ARROW-988 [JS] Add entry to Travis CI matrix
Repository: arrow
Updated Branches:
refs/heads/master 9e875a684 -> dbbbc6655
ARROW-988 [JS] Add entry to Travis CI matrix
Author: Brian Hulette <br...@ccri.com>
Closes #677 from TheNeuralBit/js_travis and squashes the following commits:
3d5b54b5 [Brian Hulette] Revert "Testing a failure"
a84b3641 [Brian Hulette] Testing a failure
70310b68 [Brian Hulette] add flatbuffers download
e0c1100d [Brian Hulette] Add travis config and scripts for JS
Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/dbbbc665
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/dbbbc665
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/dbbbc665
Branch: refs/heads/master
Commit: dbbbc6655149465c787b590833cae2b6f4e5a9dc
Parents: 9e875a6
Author: Brian Hulette <br...@ccri.com>
Authored: Sat May 13 15:53:31 2017 -0400
Committer: Wes McKinney <we...@twosigma.com>
Committed: Sat May 13 15:53:31 2017 -0400
----------------------------------------------------------------------
.travis.yml | 7 +++++++
ci/travis_before_script_js.sh | 34 ++++++++++++++++++++++++++++++++++
ci/travis_env_common.sh | 1 +
ci/travis_script_js.sh | 23 +++++++++++++++++++++++
4 files changed, 65 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/arrow/blob/dbbbc665/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index e694162..022ffb3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -74,6 +74,13 @@ matrix:
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh
script:
- $TRAVIS_BUILD_DIR/ci/travis_script_integration.sh
+ - language: node_js
+ os: linux
+ node_js: node
+ before_script:
+ - $TRAVIS_BUILD_DIR/ci/travis_before_script_js.sh
+ script:
+ - $TRAVIS_BUILD_DIR/ci/travis_script_js.sh
before_install:
- ulimit -c unlimited -S
http://git-wip-us.apache.org/repos/asf/arrow/blob/dbbbc665/ci/travis_before_script_js.sh
----------------------------------------------------------------------
diff --git a/ci/travis_before_script_js.sh b/ci/travis_before_script_js.sh
new file mode 100755
index 0000000..304c481
--- /dev/null
+++ b/ci/travis_before_script_js.sh
@@ -0,0 +1,34 @@
+#!/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_env_common.sh
+source $TRAVIS_BUILD_DIR/ci/travis_install_conda.sh
+
+# Download flatbuffers
+export FLATBUFFERS_HOME=$TRAVIS_BUILD_DIR/flatbuffers
+conda create -y -q -p $FLATBUFFERS_HOME python=2.7 flatbuffers
+export PATH="$FLATBUFFERS_HOME/bin:$PATH"
+
+npm install -g typescript
+npm install -g webpack
+
+pushd $ARROW_JS_DIR
+
+npm install
+npm run build
+
+popd
http://git-wip-us.apache.org/repos/asf/arrow/blob/dbbbc665/ci/travis_env_common.sh
----------------------------------------------------------------------
diff --git a/ci/travis_env_common.sh b/ci/travis_env_common.sh
index 5593f00..3515314 100755
--- a/ci/travis_env_common.sh
+++ b/ci/travis_env_common.sh
@@ -25,6 +25,7 @@ export ARROW_CPP_DIR=$TRAVIS_BUILD_DIR/cpp
export ARROW_PYTHON_DIR=$TRAVIS_BUILD_DIR/python
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_CPP_INSTALL=$TRAVIS_BUILD_DIR/cpp-install
http://git-wip-us.apache.org/repos/asf/arrow/blob/dbbbc665/ci/travis_script_js.sh
----------------------------------------------------------------------
diff --git a/ci/travis_script_js.sh b/ci/travis_script_js.sh
new file mode 100755
index 0000000..52ac3b9
--- /dev/null
+++ b/ci/travis_script_js.sh
@@ -0,0 +1,23 @@
+#!/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
+
+JS_DIR=${TRAVIS_BUILD_DIR}/js
+
+pushd $JS_DIR
+
+npm test
+
+popd