.travis.yml
language: node_js
node_js:
- '9'
- '8'
cache:
directories:
- ~/.npm
notifications:
email: false
before_install:
- echo "DB_HOST=storage/database" >> .env
- echo "DB_NAME=file_adapter" >> .env
- npm install -g istanbul babel-cli
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
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- npm run build
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/