#! /bin/bash

source .travis/platform.sh

cd $TRAVIS_BUILD_DIR

git clone https://github.com/joyent/libuv.git

cd libuv

mkdir -p lib
mkdir -p build
git clone http://git.chromium.org/external/gyp.git build/gyp

if [ "$PLATFORM" == "macosx" ]; then
  ./gyp_uv.py -f xcode && xcodebuild -ARCHS="x86_64" -project uv.xcodeproj -configuration Release -target All
  cp ./build/Release/libuv.a ./lib;
else
  ./gyp_uv.py -f make && BUILDTYPE=Release CFLAGS=-fPIC make -C out
  cp ./out/Release/libuv.a ./lib;
fi

cd $TRAVIS_BUILD_DIR

#! /bin/bash

source .travis/platform.sh

cd $TRAVIS_BUILD_DIR

git clone https://github.com/joyent/libuv.git -b v1.x

cd libuv

mkdir -p lib
mkdir -p build
git clone http://git.chromium.org/external/gyp.git build/gyp

if [ "$PLATFORM" == "macosx" ]; then
  ./gyp_uv.py -f xcode && xcodebuild -ARCHS="x86_64" -project uv.xcodeproj -configuration Release -target All
  cp ./build/Release/libuv.a ./lib;
else
  ./gyp_uv.py -f make && BUILDTYPE=Release CFLAGS=-fPIC make -C out
  cp ./out/Release/libuv.a ./lib;
fi

cd $TRAVIS_BUILD_DIR

Update setup libuv with branch v1.x
Update setup libuv with branch v1.x
