forked from alibaba/node-hbase-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
20 lines (17 loc) · 1.19 KB
/
.travis.yml
File metadata and controls
20 lines (17 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: node_js
node_js:
- "0.10"
before_script:
- "export HBASE_FILE=`curl http://www.eu.apache.org/dist/hbase/ | grep -o 'hbase-0.94.[0-9]*' | head -1`"
- "wget -nc http://www.eu.apache.org/dist/hbase/$HBASE_FILE/$HBASE_FILE.tar.gz"
- "tar -xzf $HBASE_FILE.tar.gz"
- "mv test/hbase-site.xml $HBASE_FILE/conf/"
- "mv test/regionservers.sh $HBASE_FILE/bin/"
- "mv test/zookeepers.sh $HBASE_FILE/bin/"
- "$HBASE_FILE/bin/start-hbase.sh"
- "$HBASE_FILE/bin/hbase org.apache.hadoop.hbase.util.RegionSplitter hbase_client_test_table HexStringSplit -c 10 -f cf1"
- "$HBASE_FILE/bin/hbase org.apache.hadoop.hbase.util.RegionSplitter hbase_client_test_table_actions HexStringSplit -c 10 -f cf1"
- 'echo "disable ''hbase_client_test_table'';alter ''hbase_client_test_table'', {NAME=>''cf1'', VERSIONS => 2}; enable ''hbase_client_test_table''; disable ''hbase_client_test_table_actions''; alter ''hbase_client_test_table_actions'', {NAME=>''cf1'', VERSIONS => 5}; enable ''hbase_client_test_table_actions''" | JRUBY_OPTS= $HBASE_FILE/bin/hbase shell'
- 'mv test/config.js.travis test/config.js'
script: "make test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"