language: node_js node_js: - "8.12" # NODE_NO_SUPPORT_MESSAGE=true is for sinon not supporting node 0.10: https://github.com/sinonjs/sinon/issues/1746 env: - CXX=g++-4.8 RIAK_ADMIN_USE_SUDO=true addons: code_climate: repo_token: ccb3dcc6f31eac8bc30fabfcbb27d3cece7cd9ebfdcd2e55d49ec5a5c1ed135f apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 before_script: - sudo apt-get purge riak # - curl http://s3.amazonaws.com/downloads.basho.com/riak/2.1/2.1.3/ubuntu/precise/riak_2.1.3-1_amd64.deb -O - curl https://files.tiot.jp/riak/kv/2.1/2.1.3/ubuntu/precise/riak_2.1.3-1_amd64.deb -O - sudo dpkg -i riak_2.1.3-1_amd64.deb - pushd /etc/riak - sudo sed -i -e 's/storage_backend = bitcask/storage_backend = leveldb/' riak.conf - popd - sudo service riak start - until sudo riak-admin test > /dev/null 2>&1; do sleep 2; done after_script: - npm install codeclimate-test-reporter - codeclimate-test-reporter < coverage/lcov.info