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:
|
2019-07-27 16:31:16 +02:00
|
|
|
template:
|
|
|
|
- "`%{repository_slug}#%{branch}`"
|
|
|
|
- "*%{result}* build (<%{build_url}|#%{build_number}>) for <%{compare_url}|%{commit}>"
|
|
|
|
- "Execution time: *%{duration}*"
|
|
|
|
- "Message: %{message}"
|
|
|
|
rooms:
|
|
|
|
- secure: r6kVJw3zS4raTXgeBEYZYO/5YawnLoi1vO4zG3obhcNFRLm9FxlzuXfulFhjQA4viPQUW07m5UGud4bPTrDIAE35GUcLRlyisH/odahgsrmqLrBvz9CB+/V5WrEsCGpE9G3I/y5JGSRavjs+5qfVqJZaAI9Ox7bCcw+Msa5r/p7/yJw5di4EzgNLFWQswyio0zeOdjtCYgqpngWtLGpn0ksSwqNyqp/kntoHSz4nDdO/6GWS1q5K9mOfGMXr/wwiYuQrgDPpygRWETy9F8qh9yH2cseJmCZaXvSTSU1L9yV01qrBP5zDTTM2jPUGMQKY4JBoxFtU29G1BLWGAgMW9ymKe9V+f8FgbirZ+O1Vp87QAZPJXx5kO+pgqBtGewoYfp0k9HJ5xQAhr83l82w8BAEHVS3G/Y7cKKK9QNH9Z6gpdx6Y3s9YkpGqkv79MRvZo0tJV+XTOldCCfUFVxXXuZofuswWGUgt2h9qNoFY+AZc0G1TV/XVDHbDm32JNiGkuk+uO83HT9VI7G5PRWNcD8kP7ZS6XThiU2qOGr4OPGggmpFpJ7Yqc3LNFOjhFunKSzGOrZrc0GLZAbAR7qHkWNpiqQQ/RSpfnXfbPlAIJY6w5Vuzh9KhIIPkbWdP89Bc2Kw+W+ACFjStO7s298/8dty44EvJ2TS9CCjOhYtgaxk=
|