Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better automated testing
  • Loading branch information
TooTallNate committed Aug 17, 2015
1 parent 35c4666 commit bbda46d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
@@ -1,4 +1,33 @@
sudo: false

env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

language: node_js

node_js:
- "0.8"
- "0.10"
- "0.12"
- "iojs-v2.5"
- "iojs-v3"

install:
- PATH="`npm bin`:`npm bin -g`:$PATH"
# Node 0.8 comes with a too obsolete npm
- if [[ "`node --version`" =~ ^v0\.8\. ]]; then npm install -g npm@1.4.28 ; fi
# Install dependencies and build
- npm install

script:
# Output useful info for debugging
- node --version
- npm --version
# Run tests
- npm test
15 changes: 10 additions & 5 deletions appveyor.yml
Expand Up @@ -7,9 +7,16 @@ environment:
- nodejs_version: "0.10"
- nodejs_version: "0.12"

platform:
- x86
- x64

# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
- ps: Install-Product node $env:nodejs_version $env:platform
# Node 0.8 comes with a too obsolete npm
- set PATH=%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%APPDATA%\npm;%PATH%
- IF "%nodejs_version%" == "0.8" npm -g install npm@1.4.28
# Typical npm stuff.
- npm install

Expand All @@ -18,10 +25,8 @@ test_script:
# Output useful info for debugging.
- node --version
- npm --version
# We test multiple Windows shells because of Node.js stdout buffering issues:
# https://github.com/joyent/node/issues/3584
- ps: "npm test # PowerShell" # Pass comment to PS for easier debugging
- cmd: npm test
# run tests
- npm test

# Don't actually build.
build: off
Expand Down

0 comments on commit bbda46d

Please sign in to comment.