1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-26 11:49:04 +01:00
blog/.travis.yml

42 lines
1.6 KiB
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-12-14 13:53:07 +01:00
node_js: node
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:
2019-11-16 16:16:38 +01:00
npm: true
2016-04-24 01:47:18 +02:00
directories:
2018-07-11 17:56:13 +02:00
- 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-10-02 13:35:50 +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
2019-10-02 13:35:50 +02:00
- './cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT'
2018-10-01 22:43:38 +02:00
- travis_wait 60 npm run build
2016-04-24 03:14:39 +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:
2019-07-27 16:31:16 +02:00
template:
2019-10-02 13:35:50 +02:00
- '%{branch} *%{result}* build (<%{build_url}|#%{build_number}>) for <%{compare_url}|%{commit}>'
- 'Execution time: *%{duration}*'
- 'Message: %{message}'
2019-07-27 16:31:16 +02:00
rooms:
2019-10-02 13:35:50 +02:00
- secure: 'Ot7Ryl4PW0/TUo4t4Y3J6AbmxqNUtFOI72vNabNX2IdEiU78q+M3esPEkT2I/z0S2Vda9ogRkRbKa5blE2ZEo74/9CUYRXX/syPSZL9tpHDd600wmiObee469Au8dSO48n8G9U+Dm1q60O6oiEGsrrAR6fNE386QEfDhVqKKwBKHk9RcUocUO2b+0WKI7MJk+j5G4+sxv/5ax8prGx0sD6bRoGRuNpyW/MZ9uylBV2WOdmHfEY9D8GYpzVs2JqTB7xr/OL9d+puZPQSdqGfa7xtc+APFiKK//aW/ffOsNzGa4kygC94nfV4oJceMUO3v0bDpB5aXM1YG02EyQzSwpGCbtnbP9Ei/ANcGqiFjPm1/ZVAiwPzT8XZLWkFjy+sOfmF+xmszUCoRiJBVxfL0tx0d1o/JIvgA5m+/iIpro70ep0nBHTiDt2AoxaGGE9GnIT20uVXJJIdXIwTWhVx4HnkptYsFel9l2/oc24S+CnitRaCtGQCiAMNNCESL1AcHCRot/4gm3uuZLdYEA1juHUvgEEH6jG5T2XWaq4uEbDZKdu8y7YMW105FytEsyNU3Tzem4c024EIAhBshSfg5N/iwVeic47E1QAz/5RtfBNLQaEPY4TGJYJvTOaCevjYC7mKlYBEoZmsfT0uNaWqEXUxUwLg5Ih8JoLQKvH6H4fA='