Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions 40 .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,22 @@ sudo: false

env:
matrix:
- export NODE_VERSION="0.12"
- export NODE_VERSION="4.1"
- export NODE_VERSION="5.8"
- export NODE_VERSION="0.12" TARGET_ARCH="x64"
- export NODE_VERSION="4.1" TARGET_ARCH="x64"
- export NODE_VERSION="5.8" TARGET_ARCH="x64"

matrix:
fast_finish: true
include:
- os: linux
env: export NODE_VERSION="0.12" TARGET_ARCH="ia32"
sudo: required
- os: linux
env: export NODE_VERSION="4.1" TARGET_ARCH="ia32"
sudo: required
- os: linux
env: export NODE_VERSION="5.8" TARGET_ARCH="ia32"
sudo: required

git:
depth: 1
Expand All @@ -30,15 +40,19 @@ addons:
packages:
- build-essential
- libssl-dev
- gcc-4.9
- g++-4.9
- gcc-4.9-multilib
- g++-4.9-multilib
- lcov

before_install:
- export CC=clang
- export CXX=clang++
- export npm_config_clang=1

- if [ $TARGET_ARCH == "ia32" ]; then
sudo ln -s /usr/include/asm-generic /usr/include/asm;
fi

- if [ $TRAVIS_OS_NAME != "linux" ]; then
git clone https://github.com/creationix/nvm.git ./.nvm;
source ./.nvm/nvm.sh;
Expand Down Expand Up @@ -74,22 +88,26 @@ before_script:
- git config --global user.email johndoe@example.com

script:
- if [ -z "$TRAVIS_TAG" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "0.12" ]; then
npm test && npm run cov && npm run coveralls;
- if [ $TARGET_ARCH == "x64" ]; then
if [ -z "$TRAVIS_TAG" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "0.12" ]; then
npm test && npm run cov && npm run coveralls;
else
npm test;
fi
else
npm test;
echo "Not running tests because the binary is not built for 64-bit systems";
fi

after_success:
- if [ -n "$TRAVIS_TAG" ]; then
npm install -g node-pre-gyp;
npm install -g aws-sdk;
node lifecycleScripts/clean;
node-pre-gyp package;
node-pre-gyp publish;
node-pre-gyp package --target_arch=$TARGET_ARCH;
node-pre-gyp publish --target_arch=$TARGET_ARCH;
fi

- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "4.1" ]; then
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "4.1" ] && [ $TARGET_ARCH == "x64" ]; then
.travis/deploy-docs.sh;
fi

Expand Down
3 changes: 3 additions & 0 deletions 3 lifecycleScripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ function build() {
var builder = "node-gyp";
var debug = (process.env.BUILD_DEBUG ? "--debug" : "");
var target = "";
var arch = (process.env.TARGET_ARCH ?
"--arch=" + process.env.TARGET_ARCH : "");
var distUrl = "";
var runtime = "";

Expand Down Expand Up @@ -114,6 +116,7 @@ function build() {
"rebuild",
debug,
target,
arch,
distUrl,
runtime
]
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.