Skip to content

Commit

Permalink
#49 Implement Protocol v6 of CUBRID.
Browse files Browse the repository at this point in the history
New Features

#49 Implement Protocol v6 of CUBRID.
#13 Add support for alternative hosts to support client side HA.
#12 #11 Provide a configurable logging function.
#18 Added ENUM data type support via the old protocol.
#14 Support promises.
Refactoring

#48 Update README.
#14 Indent using spaces instead of tabs.
#14 Reduce the use of self where this can be used directly.
#14 Extract constants and other useless variables from the connection
object.
  • Loading branch information
kadishmal committed Oct 5, 2016
1 parent 4405f1d commit 99dde5f
Show file tree
Hide file tree
Showing 344 changed files with 14,342 additions and 20,546 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage
5 changes: 5 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends: eslint:recommended
installedESLint: true
env:
es6: true
node: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
coverage
74 changes: 19 additions & 55 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,28 @@
sudo: required

language: node_js

node_js:
# Quote the version number as Travis will interpret 0.10 as 0.1 unless quoted.
- "0.10"
- 4

services:
- docker

env:
- CUBRID_VERSION=9.1.0
- CUBRID_VERSION=8.4.4
- CUBRID_VERSION=8.4.3
- CUBRID_VERSION=8.4.1
- CUBRID_VERSION=9.3.6.0002
- CUBRID_VERSION=9.2.26.0004
- CUBRID_VERSION=9.2.3.0005
- CUBRID_VERSION=9.1.0.0218
- CUBRID_VERSION=9.0.0.0478
- CUBRID_VERSION=8.4.3.10001
- CUBRID_VERSION=8.4.1.32003

before_install:
# According to http://docs.travis-ci.com/user/build-configuration/
# prepare the system to install prerequisites or dependencies.
# Update the OS before installing prerequisites.
- sudo apt-get update
# Install Chef Solo prerequisites.
# Ruby >=2.0.0 is required by one of the Chef dependencies.
# Build Ruby from source. Will auto install gem.
- RUBY_MAJOR_VERSION=2.2
- RUBY_VERSION=$RUBY_MAJOR_VERSION.0
# Install Ruby prerequisites.
- sudo apt-get install -y build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev wget ssl-cert
# Download Ruby source into the current directory.
- wget http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR_VERSION/ruby-$RUBY_VERSION.tar.gz
# Extract Ruby source
- tar -xvzf ruby-$RUBY_VERSION.tar.gz
# Enter the Ruby directory.
- cd ruby-$RUBY_VERSION
# Configure Ruby.
- ./configure --prefix=/usr/local
- make
# Install Ruby.
- sudo make install
# Return back to the previous directory.
- cd ..
# Install Chef Solo.
# Chef Solo 11.4.4 is broken, so install one of the later versions.
# The bug was supposed to be fixed in 11.4.5 which is already released.
- sudo gem install chef --no-rdoc --no-ri

install:
# Install dev dependencies for this Node.js project.
- npm install
# CUBRID operates on IPv4 address, while Travis defaults to IPv6.
# Therefore, we need to explicitly override the default `hostname`
# to point to an IPv4 address.
- sudo hostname localhost
# Make sure the target directory for cookbooks exists.
- mkdir -p /tmp/chef-solo
# Prepare a file with runlist for Chef Solo.
- echo '{"cubrid":{"version":"'$CUBRID_VERSION'"},"run_list":["cubrid::demodb"]}' > cubrid_chef.json
# Install CUBRID via Chef Solo. Download all cookbooks from a remote URL.
- sudo chef-solo -c test/testSetup/solo.rb -j cubrid_chef.json -r http://sourceforge.net/projects/cubrid/files/CUBRID-Demo-Virtual-Machines/Vagrant/chef-cookbooks.tar.gz/download
- docker pull lighthopper/cubrid:$CUBRID_VERSION
- docker run -d -p 33000:33000 lighthopper/cubrid:$CUBRID_VERSION ./create-start-demodb.sh
- docker ps -a

after_success:
# Install JSCoverage prerequisites.
- sudo apt-get install zip
# Install JSCoverage to instrument code covered version of the node-cubrid module.
- export JSCOVERAGE_VERSION=0.5.1
- wget http://siliconforks.com/jscoverage/download/jscoverage-$JSCOVERAGE_VERSION.tar.bz2
- tar jxf jscoverage-$JSCOVERAGE_VERSION.tar.bz2 && cd jscoverage-$JSCOVERAGE_VERSION && ./configure && make && sudo make install && cd ..
- npm run cover
- npm run coverage

script: npm run test
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# node-cubrid change log

## Version Next (Unreleased)

- Ref #14: Indent using spaces instead of tabs.

## Version 2.2.5 (June 5, 2015)

- Fix #45: Imply the connection before beginning the transaction.
Expand Down
2 changes: 0 additions & 2 deletions CUBRID version supported.txt

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is a Dockerfile to build an image for running
# node-cubrid tests.

FROM node:0.10
FROM node:4.5.0

MAINTAINER Esen Sagynov <kadishmal@gmail.com>

Expand All @@ -12,7 +12,7 @@ WORKDIR /node-cubrid
# Update the OS before installing prerequisites.
RUN apt-get update

# Install Ruby prerequisites.
# Install Ruby prerequisites. Necessary to run Chef.
RUN apt-get install -y build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev wget ssl-cert libffi6 libffi-dev

# Install Chef Solo prerequisites.
Expand Down
Loading

0 comments on commit 99dde5f

Please sign in to comment.