language: node_js node_js: - "4" - "5" addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 script: npm run $NPM_COMMAND sudo: false env: global: - CXX=g++-4.8 - PORT=8080 - BASE_URL="http://localhost:8080" - STATIC_PATH="static" - SESSION_SECRET="338e281187f9e8f66c792705203b4c50" - REDIS_PREFIX="example:" - REDIS_URL="redis://localhost:6379/" - REDIS_DATABASE=0 - JWT_ENCRYPTION_PASSWORD="super secret jwt encryption password" - JWT_SIGNING_SECRET="super secret jwt signing secret" matrix: - NPM_COMMAND=test - NPM_COMMAND=test-with-coverage services: - redis-server matrix: exclude: # don't collect code coverage more than once - node_js: "4" env: NPM_COMMAND=test-with-coverage - node_js: "5" env: NPM_COMMAND=test