mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
dist: xenial
|
|
language: node_js
|
|
node_js:
|
|
- '11'
|
|
|
|
git:
|
|
depth: 10
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
- public
|
|
|
|
before_install:
|
|
- sudo apt-get -qq update
|
|
- sudo apt-get install python3-pip
|
|
- sudo -H pip3 install --upgrade pip
|
|
|
|
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"
|
|
|
|
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:
|
|
template:
|
|
- "%{branch} *%{result}* build (<%{build_url}|#%{build_number}>) for <%{compare_url}|%{commit}>"
|
|
- "Execution time: *%{duration}*"
|
|
- "Message: %{message}"
|
|
rooms:
|
|
- 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="
|