1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-15 01:25:28 +01:00
blog/.travis.yml

42 lines
867 B
YAML
Raw Normal View History

2019-04-24 11:15:29 +02:00
dist: xenial
2018-07-11 17:56:13 +02:00
language: node_js
2019-04-24 11:15:29 +02:00
node_js:
- '11'
2016-04-24 01:47:18 +02:00
2018-12-07 14:12:01 +01:00
git:
depth: 10
2016-04-24 01:47:18 +02:00
cache:
directories:
2018-07-11 17:56:13 +02:00
- node_modules
- public
2016-04-24 01:47:18 +02:00
2019-04-24 11:15:29 +02:00
# 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
2016-04-24 01:47:18 +02:00
2019-05-02 21:11:52 +02:00
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
2018-07-11 17:56:13 +02:00
script:
- npm test
2018-10-01 22:43:38 +02:00
- travis_wait 60 npm run build
2016-04-24 03:14:39 +02:00
2019-05-02 21:11:52 +02:00
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2018-07-11 17:56:13 +02:00
after_success:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- npm run deploy
2016-04-24 03:14:39 +02:00
notifications:
2018-09-13 22:28:41 +02:00
email: false
slack: kremalicious:LXLUCjkY5yaZaC9vHl9vIORr