Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
95 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.node_pre_gyprc | ||
node_modules | ||
build | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
environment: | ||
node_pre_gyp_accessKeyId: | ||
secure: GOBrUyHVMfZSrmsS4I63fC+E3qploEcIuQc/ofuTK5U= | ||
|
||
node_pre_gyp_secretAccessKey: | ||
secure: QBSKf6NBLUrjkk7ft4H8LyxATdcJ8PmQObKqDgl1qQmT0ju7r3l/D6t8MN2joQqk | ||
|
||
matrix: | ||
- nodejs_version: 4 | ||
- nodejs_version: 5 | ||
- nodejs_version: 6 | ||
- nodejs_version: 7 | ||
|
||
platform: | ||
- x64 | ||
- x86 | ||
|
||
shallow_clone: true | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:Platform | ||
- ps: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force | ||
- npm install --global --production npm-windows-upgrade | ||
- npm-windows-upgrade --npm-version 2.15.9 --no-dns-check --no-prompt | ||
- node --version | ||
- npm --version | ||
- node -e "console.log(process.arch);" | ||
- IF /I "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH% | ||
- IF /I "%PLATFORM%" == "x86" SET PATH=C:\python27;%PATH% | ||
- IF /I "%PLATFORM%" == "x64" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 | ||
- IF /I "%PLATFORM%" == "x86" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 | ||
- npm install --build-from-source | ||
- npm test | ||
- npm ls | ||
- SET PATH=node_modules\.bin;%PATH% | ||
- node-pre-gyp package publish | ||
|
||
|
||
build: off | ||
test: off | ||
deploy: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//The Tulip Indicators C code has a lot of tests. | ||
//This test is really only to prove that the code | ||
//compiled properly and is interfacing with node. | ||
|
||
|
||
var tulind = require("./index"); | ||
var assert = require("assert"); | ||
|
||
console.log("Test -- Tulip Indicators version:"); | ||
console.log(tulind.version); | ||
|
||
|
||
var data = [5,5,5,20]; | ||
|
||
//Do a simple moving average on close prices with period of 3. | ||
tulind.indicators.sma.indicator([data], [3], function(err, results) { | ||
assert(results[0][0] == 5); | ||
assert(results[0][1] == 10); | ||
|
||
console.log("Congratulations, Tulip Node is working!"); | ||
}); | ||
|
||
|