# Based on: https://github.com/IBM-Swift/Kitura/blob/master/.travis.yml

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: xcode8.2
      sudo: required

before_install:
  - git clone https://github.com/IBM-Swift/Package-Builder.git
  # Install minizip as dependency for PerfectZip
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget http://mirrors.kernel.org/ubuntu/pool/universe/m/minizip/libminizip-dev_1.1-8_amd64.deb; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget http://mirrors.kernel.org/ubuntu/pool/universe/m/minizip/libminizip1_1.1-8_amd64.deb; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg -i libminizip*; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install minizip; fi

before_script:
  # TODO: get more information about the build
  - echo "$TRAVIS_BUILD_DIR"
  - find $TRAVIS_BUILD_DIR | egrep -v \.git

script:
  - ./Package-Builder/build-package.sh -projectDir $TRAVIS_BUILD_DIR

after_script:
  # TODO: get more information about the build
  - echo "$TRAVIS_BUILD_DIR"
  - find $TRAVIS_BUILD_DIR | egrep -v \.git

# Based on: https://github.com/IBM-Swift/Kitura/blob/master/.travis.yml

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: xcode8.3
      sudo: required

before_install:
  - git clone https://github.com/IBM-Swift/Package-Builder.git
  # Install minizip as dependency for PerfectZip
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget http://mirrors.kernel.org/ubuntu/pool/universe/m/minizip/libminizip-dev_1.1-8_amd64.deb; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget http://mirrors.kernel.org/ubuntu/pool/universe/m/minizip/libminizip1_1.1-8_amd64.deb; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg -i libminizip*; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install minizip; fi

script:
  - ./Package-Builder/build-package.sh -projectDir $TRAVIS_BUILD_DIR

after_script:
  # TODO: get more information about the build
  - echo "$TRAVIS_BUILD_DIR"
  - find $TRAVIS_BUILD_DIR | egrep -v \.git

Update to Xcode 8.3 (Swift 3.1) and only dump build info at the end
Update to Xcode 8.3 (Swift 3.1) and only dump build info at the end
