File: package_osx.sh

package info (click to toggle)
node-zipfile 0.5.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 244 kB
  • ctags: 54
  • sloc: cpp: 345; makefile: 48; sh: 25; lisp: 10
file content (25 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

CURRENT_DIR="$( cd "$( dirname $BASH_SOURCE )" && pwd )"
cd $CURRENT_DIR/../
source ~/.nvm/nvm.sh
nvm use 0.10

set -u -e

npm install node-gyp
npm install aws-sdk
export PATH=`pwd`/node_modules/.bin:$PATH

function doit {
    rm -rf build
    node-pre-gyp clean build package testpackage "$@"
    npm test
    ./node_modules/.bin/node-pre-gyp publish info "$@"
    npm install --fallback-to-build=false
    npm test
}

doit
nvm use 0.8
doit --target=0.8.26