AnselemOdims/Loaner

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
env:
  global:
    - CC_TEST_REPORTER_ID=a36274a5fd760c11cd472fe5c2e05c242e146791a9b8ee240b61f0e6323ae2f6
language: node_js
node_js: 
  - "stable"
  
services:
  - postgresql

cache:
  directories:
    - "node_modules"

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  - psql -c "CREATE DATABASE loaner_test;" -U postgres
  - psql -c "CREATE USER anselem WITH PASSWORD 'tosheto77';" -U postgres

script:
  - "npm run test"

after_script:
  - npm run coveralls
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

notifications:
  email: false