1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00
blog/.travis.yml

42 lines
867 B
YAML

dist: xenial
language: node_js
node_js:
- '11'
git:
depth: 10
cache:
directories:
- node_modules
- public
# will run `npm install` automatically here
before_install:
- sudo apt-get -qq update
- sudo apt-get install python3-pip
- sudo -H pip3 install --upgrade pip
before_script:
# https://docs.codeclimate.com/docs/travis-ci-test-coverage
- 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
script:
- npm test
- travis_wait 60 npm run build
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- npm run deploy
notifications:
email: false
slack: kremalicious:LXLUCjkY5yaZaC9vHl9vIORr