language: generic
sudo: required
install:
  - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script: swift test
matrix:
  include:
    - os: osx
      osx_image: xcode8.3
      before_install:
        - brew update
        - brew install libsodium
    - os: linux
      dist: trusty
      before_install:
        - sudo add-apt-repository -y ppa:chris-lea/libsodium
        - sudo apt-get -qq update
        - sudo apt-get install -y libsodium-dev libssl-dev

language: generic
sudo: required
install:
  - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script: swift test
matrix:
  include:
    - os: osx
      osx_image: xcode8.3
      before_install:
        - brew update
        - brew install libsodium
    - os: linux
      dist: trusty
      before_install:
        - sudo apt-get install -y libssl-dev
        - wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.12.tar.gz
        - tar xzf libsodium-1.0.12.tar.gz
        - cd libsodium-1.0.12
        - ./configure
        - make && make check
        - sudo make install
        - cd ..

Install libsodium 1.0.12 in CI
Install libsodium 1.0.12 in CI

We need 1.0.9, but the repository chris-lea provides
an older version of libsodium.
