fix node artifact building on mac

pull/5153/head
Jan Tattermusch 9 years ago
parent 2a9d5e1c01
commit a24026f554
  1. 7
      test/distrib/node/run_distrib_test.sh
  2. 2
      tools/jenkins/docker_run.sh
  3. 6
      tools/run_tests/build_artifact_node.sh
  4. 3
      tools/run_tests/build_package_node.sh

@ -28,15 +28,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NODE_VERSION=$1
source ~/.nvm/nvm.sh
set -ex
cd $(dirname $0)
NODE_VERSION="$1"
# make sure nvm is available
source ~/.nvm/nvm.sh || true
nvm install $NODE_VERSION
npm install -g node-static

@ -47,8 +47,6 @@ then
rvm use ruby-2.1
fi
nvm use 4 || true
cd /var/local/git/grpc
$RUN_COMMAND

@ -28,8 +28,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NODE_TARGET_ARCH=$1
source ~/.nvm/nvm.sh
set -ex
nvm use 4
cd $(dirname $0)/../..
rm -rf build
@ -42,6 +46,6 @@ node_versions=( 0.10.41 0.12.0 1.0.0 1.1.0 2.0.0 3.0.0 4.0.0 5.0.0 )
for version in ${node_versions[@]}
do
node-pre-gyp configure rebuild package testpackage --target=$version --target_arch=$1
node-pre-gyp configure rebuild package testpackage --target=$version --target_arch=$NODE_TARGET_ARCH
cp -r build/stage/* artifacts/
done

@ -28,8 +28,11 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
source ~/.nvm/nvm.sh
set -ex
nvm use 4
cd $(dirname $0)/../..
mkdir -p artifacts/

Loading…
Cancel
Save