-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (49 loc) · 1.67 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: node_js
node_js:
- '8'
env:
global:
- CI=true
- IMGUR_CLIENT_ID=$IMGUR_CLIENT_ID
- IMGUR_CLIENT_SECRET=$IMGUR_CLIENT_SECRET
cache:
directories:
- node_modules/
- pupeteer/
- /home/travis/.nvm/versions/node/
services:
- mysql
notifications:
email:
on_success: never
on_failure: never
webhooks: https://dev.webspace.rocks/travis-discord/
before_install:
- sudo apt-get install -qq sshpass
- npm install -g gulp dredd
- mysql -e 'CREATE DATABASE designhub;' && mysql -u root designhub < ./src/spec/designhub_preseeded.sql
- rm -f src/.env.example
- echo 'prepared everything.'
install: npm install
before_script:
- gulp lint
- gulp build
- ls
scripts:
- dredd
before_deploy: gulp package
deploy:
- provider: releases
api_key:
secure: Ut7v3sK8+IppZVKW+LSGkFzNvykd7fBt6Cu5qD0i4WafoDp0pPHFrht0hHOuQyoQlAyTCJrZHppCyOHGHzQdGrpv4AnY8AIzimXINv0aQIqBWmLrGw/B4vpKu3wNYHYr0Fu8o75RcD0oD1E7w2iD3yGJN6HwvCb89TQwCsKXh6S5lUZEEqlufRP5NDUc2Pu4xLKE1waJmHxm9L72A9wTABE5/yVB42gwWCvVmgGdV1vaatup97mPLGIbZK8NF7tkfnL6EiajnPf+lVFWhgyRrWvETDiBAl/uQJPzWAyf/VVeC4MkhMoSQFp/inmB/g4ptK6LjC8fWDkps2VMmgfwcAYBwoxbOaiV3Puscgr+XTYikbywTPzLaR0EMS6gzbgoAjgTge8clGrKnJkiLiZd1jldeJLYlQvsF0DjzuJXYWmmQ7xbZ1xmwRKq/SuEOQdziInQkF9+CZ7eNmnPFOqkyCGerN6oWkhIZPeiNt5+hIMaWEA9Kos8mK8CSBcWTtC7Bj6YTcwUuWBEWuzmw3AoRWEwCO9uwExlAZCEHF35qLgvlspwCRQOHLe93ptZtmGaNZm5JwhYZHUYnLAtz7/5lsJ4w0u4pEBoUnrcxgEPmmf3V5M1mVJ2NcbakYD4rZq05XLj150sxPB4fd99eBssEpaTyOAnzm0SDfR6mwnTVIc=
file: tmp/release.tar.gz
skip_cleanup: true
on:
repo: dsgnhb/api
branch: refactor
tags: true
- provider: script
script: sh deploy.sh
skip_cleanup: false
on:
branch: master