# Use container-based infrastructure
sudo: false

language: scala

jdk: oraclejdk8

scala:
  - 2.11.7

# These directories are cached to S3 at the end of the build
cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt/boot/

before_cache:
  # Tricks to avoid unnecessary cache updates
  - find $HOME/.sbt -name "*.lock" | xargs rm
  - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm

addons:
  apt:
    packages: libgmp-dev

install:
  - mkdir lib && cd secp256k1
  - ./autogen.sh
  - ./configure --enable-jni --enable-experimental --enable-module-ecdh
  - sudo make install
  - cd ../
script: sbt -Djava.library.path=secp256k1/.libs clean coverage test
after_success: "sbt coverageReport coverageAggregate coveralls"

# Use container-based infrastructure
sudo: false

language: scala

jdk: oraclejdk8

scala:
  - 2.11.7

# These directories are cached to S3 at the end of the build
cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt/boot/

before_cache:
  # Tricks to avoid unnecessary cache updates
  - find $HOME/.sbt -name "*.lock" | xargs rm
  - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm

addons:
  apt:
    packages: libgmp-dev

install:
  - mkdir lib && cd secp256k1
  - ./autogen.sh
  - ./configure --enable-jni --enable-experimental --enable-module-ecdh
  - sudo make install
  - cd ../
script:
  - sbt -Djava.library.path=secp256k1/.libs clean coverage test &&
    sbt coverageReport &&
    sbt coverageAggregate
after_success:
  - sbt coveralls

Configure Travis-CI for multiproject build
Configure Travis-CI for multiproject build
