-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
60 lines (50 loc) · 1.75 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
50
51
52
53
54
55
56
57
58
59
60
language: node_js
sudo: false
node_js:
- '10'
python:
- '3.6'
env:
global:
- S3_BUCKET_PREFIX=hackingstudio-code4maus-projects
- AWS_REGION=eu-central-1
cache:
yarn: true
directories:
- assets/
addons:
apt:
update: true
before_install:
- sudo apt-get install -y python3-pip python3-setuptools libcups2-dev
- pip3 install --user awscli
- export PATH=$PATH:$HOME/.local/bin
before_script:
- yarn assets:download
script:
- NODE_ENV=production yarn build
- yarn build:patternlib
deploy:
- provider: script
skip_cleanup: true
script: SLS_STAGE=staging yarn deploy
on:
branch: develop
- provider: script
skip_cleanup: true
script: SLS_STAGE=prod yarn deploy
on:
branch: production
- provider: script
skip-cleanup: true
script: ./scripts/deploy-gh-pages.sh .patternlib components
on:
branch: develop
notifications:
slack:
rooms:
- secure: PrGsD5+lm7zp31WeEqV2EOfTSupzJ5K2mO1Hxn/lC3Z+z4hawgesKf9boAhLiWtv7iTMC69WyRtbCEPJk0o+g1xW++OdJgsh2zomyhAV/yChusJ7rX4qzZo78Yh15GFrbD7ALWfFchIzN6eFHXKEk7Q94WIGTKrpyr2ZuWYGW46ZwIih3f0hBPu8EIXHArrBt0WsgYKuWH1Om4N2vbVdK+6vtSG+RgCtnsErchGF22P/vDuXSYE5WAe15n7dI/tiyLtUD5YJOY768kDZSZzqZ02iAQO14QhctJsVqVLQab3tcwvftGj8dhApHuryu3y8S2KOrRszvZmw46ZDPs+1epdJ9qewz3o/2MP81u3V7M8cwGcZdGJaCUGv8LKhWWCN6uPAn7K+LrzxAOKg7l3FxQ3FWnyYc0n7qppuMKIwbWesI8nYvVHP4t/Ro5kvSFXCPosk3AVXXeyZv0MySPG5WJ9mIQ03y1wGQnaYM3onsE5B7QzNIYNJcGDvPntX0eRxFNIvBo3Z8hw5EoRTXlBM+LNftFeJWyHTW71dhGKiHIC1Y5/Sv7UNW0ZPgfpkNcLPSqQw4qp20+P+1tjkhF3d8kfpcMn+4JfZ80+tZqUMd0/R7Py6uQc6FUguTIj1TTZjUmmCT9Utl599Uj/nonbqanAWqswN2UZD+DOkKFPJt3o=
on_pull_requests: false
template:
- 'Deployment %{result}:'
- '<%{compare_url}|%{repository_slug}:%{branch}#%{commit}> by %{author}'