language: cpp
compiler: gcc
os: linux
sudo: required
dist: trusty
cache: 
  directories:
  - $HOME/ionomy/ion/src/leveldb
  - $HOME/ionomy/ion/src/secp256k1
before_install:
  - chmod 755 src/leveldb/build_detect_platform
install:
  - sudo apt-get -qq update
  - sudo apt-get install -y build-essential libtool autotools-dev autoconf pkg-config libssl-dev libboost-all-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libcrypto++-dev libevent-dev libminiupnpc-dev libgmp-dev
  - sudo add-apt-repository -y ppa:silknetwork/silknetwork
  - sudo apt-get update -y && sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
script:
  - cd src
  - make -f makefile.unix
  - cd ..
  - qmake -qt=qt5 USE_UPNP=-
  - make

language: cpp
dist: trusty
sudo: false
compiler:
  - clang
  - gcc
cache:
  directories:
  - $HOME/ionomy/ion/src/leveldb
  - $HOME/ionomy/ion/src/secp256k1
addons:
  apt:
    sources:
      - sourceline: 'ppa:bitcoin/bitcoin'
    packages:
      - autoconf
      - autotools-dev
      - build-essential
      - libboost-all-dev
      - libcrypto++-dev
      - libdb4.8++-dev
      - libdb4.8-dev
      - libevent-dev
      - libgmp-dev
      - libminiupnpc-dev
      - libprotobuf-dev
      - libqt5core5a
      - libqt5dbus5
      - libqt5gui5
      - libssl-dev
      - libtool
      - pkg-config
      - protobuf-compiler
      - qttools5-dev
      - qttools5-dev-tools
before_script:
  - chmod 755 src/leveldb/build_detect_platform
  # Clang is not system wide.  This is a work around.
  - $CC --version
  - which $CC
  - export CC=`which $CC`
script:
  - cd src
  - make -f makefile.unix
  - cd ..
  - qmake -qt=qt5 USE_UPNP=- "QMAKE_CXX=$CXX" "QMAKE_CC=$CC"
  - make

Clean up Travis builds and add Clang builds
Clean up Travis builds and add Clang builds
