forked from transitland/dispatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
38 lines (34 loc) · 1.08 KB
/
circle.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
machine:
node:
version: 6.10.2
dependencies:
pre:
- sudo pip install -U awscli
- npm install -g bower
cache_directories:
- node_modules
- bower_components
- ~/nvm/v4.5.0/lib/node_modules/ember-cli
- ~/nvm/v4.5.0/bin/ember
override:
- npm prune && npm install
- bower prune && bower install
- if [ ! -e ~/nvm/v4.5.0/bin/ember ]; then npm install -g ember-cli; else echo "ember-cli seems to be cached"; fi;
database:
override:
- echo "we need no database"
test:
override:
- echo "Let's see if the app will build"
- ember build
deployment:
staging:
branch: master
commands:
- ember build --environment=staging
- AWS_ACCESS_KEY_ID=${STAGING_AWS_ACCESS_KEY_ID} AWS_SECRET_ACCESS_KEY=${STAGING_AWS_SECRET_ACCESS_KEY} aws s3 sync ./dist s3://staging.transit.land/dispatcher/
production:
branch: production
commands:
- ember build --environment=production
- AWS_ACCESS_KEY_ID=${PROD_AWS_ACCESS_KEY_ID} AWS_SECRET_ACCESS_KEY=${PROD_AWS_SECRET_ACCESS_KEY} aws s3 sync ./dist s3://transit.land/dispatcher/