-
Notifications
You must be signed in to change notification settings - Fork 27
/
circle.yml
37 lines (34 loc) · 1.09 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
machine:
node:
version: 8.1.0
environment:
NODE_ENV: test
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
# Yarn is pre-installed on CircleCI Ubuntu 14.04 image.
override:
- yarn install --ignore-optional
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn test
# For hosting on mapzen.com. Only deploy if tests pass. Compiled files are
# rebuilt for a production environment.
#deployment:
# # Production environment will only deploy when a release is tagged in the
# # correct format (semantic version, e.g. release-v0.5.0)
# production:
# tag: /release-v[0-9]+\.[0-9]+\.[0-9]+/
# commands:
# - aws s3 sync $CIRCLE_ARTIFACTS $AWS_PROD_DESTINATION --delete
# # The latest `master` branch will auto-deploy to dev. Unstable "test" code
# # should go on `staging` and will also deploy to dev.
# next:
# branch: master
# commands:
# - aws s3 sync $CIRCLE_ARTIFACTS $AWS_DEV_DESTINATION --delete
# staging:
# branch: staging
# commands:
# - aws s3 sync $CIRCLE_ARTIFACTS $AWS_DEV_DESTINATION --delete