language: java

before_script:
  - wget -c http://download.dnscrypt.org/libsodium/releases/libsodium-0.3.tar.gz
  - tar xzvf libsodium-0.3.tar.gz
  - cd libsodium-0.3 && mkdir vendor
  - ./configure --prefix=`pwd`/vendor
  - make && make install
  - cd ../

script: "LD_LIBRARY_PATH=/home/travis/build/abstractj/kalium/libsodium-0.3/vendor/lib"

env: JAVA_OPTS="-Djava.library.path=/home/travis/build/abstractj/kalium/libsodium-0.3/vendor/lib"

jdk:
  - oraclejdk7
  - openjdk6

after_success:
  - rm -rf libsodium-0.3*

language: java

before_script:
  - wget -c http://download.dnscrypt.org/libsodium/releases/libsodium-0.4.tar.gz
  - tar xzvf libsodium-0.4.tar.gz
  - cd libsodium-0.4 && mkdir vendor
  - ./configure --prefix=`pwd`/vendor
  - make && make install
  - cd ../

script: "LD_LIBRARY_PATH=/home/travis/build/abstractj/kalium/libsodium-0.4/vendor/lib"

env: JAVA_OPTS="-Djava.library.path=/home/travis/build/abstractj/kalium/libsodium-0.4/vendor/lib"

jdk:
  - oraclejdk7
  - openjdk6

after_success:
  - rm -rf libsodium-0.4*

Update CI to test kalium against libsodium 0.4
Update CI to test kalium against libsodium 0.4
