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

40 lines
911 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
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:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
2019-07-15 19:42:13 +02:00
- "./cc-test-reporter before-build"
2019-05-02 21:11:52 +02:00
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:
2019-07-15 19:42:13 +02:00
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
2019-05-02 21:11:52 +02:00
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
2019-07-15 19:42:13 +02:00
slack:
secure: C5ZRKCMgwypPc765q2JvisCWfxou5x31hKNrSwRhWW6b5WurdWPvc0t/XigF94bCAMDlNjXfUrHZVJCjcnRuNTRZz7pzzNzEt1rmn2haQ5HRyydcW0ToKERUwBDazgng6hhde+2I4RH7H8cLOKGCPnh7DFBWOYXOoiPne5mnLlI=