-
Notifications
You must be signed in to change notification settings - Fork 17
/
circle.yml
29 lines (29 loc) · 1.18 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
general:
artifacts:
- dist/
machine:
environment:
BUILD_SUFFIX: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BRANCH/$CIRCLE_BUILD_NUM/
ROOT_URL: /$BUILD_SUFFIX
dependencies:
pre:
- sudo apt-get update; sudo apt-get install libicu52
- curl --output /home/ubuntu/bin/phantomjs-2.0.1-linux-x86_64-dynamic https://s3.amazonaws.com/circle-support-bucket/phantomjs/phantomjs-2.0.1-linux-x86_64-dynamic
- chmod a+x /home/ubuntu/bin/phantomjs-2.0.1-linux-x86_64-dynamic
- sudo ln -s --force /home/ubuntu/bin/phantomjs-2.0.1-linux-x86_64-dynamic /usr/local/bin/phantomjs
post:
- gem install sass
- if ! which ember; then npm install -g [email protected]; else echo "Found existing ember-cli in CircleCI cache"; fi
- if ! which bower; then npm install -g [email protected]; else echo "Found existing bower in CircleCI cache"; fi
- bower install
test:
pre:
- cp .env.deploy .env
deployment:
staging:
branch: /.*/
commands:
- cp .env.deploy .env
- ember build --environment=production
- aws s3 sync ./dist/ "s3://ci-deploys.cid-labs.com/$BUILD_SUFFIX"
- echo "Check out deploy at http://ci-deploys.cid-labs.com/$BUILD_SUFFIX"