forked from OnsenUI/onsen.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
executable file
·49 lines (49 loc) · 1.93 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
39
40
41
42
43
44
45
46
47
48
49
general:
branches:
only:
- master
- staging
- production
- v2-design
machine:
node:
version: 6.2.0
checkout:
post:
- git submodule sync
- git submodule update --init --recursive
- git submodule foreach git fetch --tags
- cd dist/v1/OnsenUI; git fetch --tags; git checkout `git tag | grep "^1." | sort --version-sort | tail -n 1`; cd ../../..; # Latest 1.x
- cd dist/v2/OnsenUI; git fetch --tags; git checkout `git tag | grep -v "-" | grep "^2\." | sort --version-sort | tail -n 1`; cd ../../..; # Latest 2.x
- cd dist/tutorial; git fetch origin; git checkout master; git pull; cd ../..;
dependencies:
override:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- npm install
- cd dist/v1/OnsenUI/css-components && npm install && ./node_modules/.bin/gulp build
- cd dist/v1/OnsenUI && npm install && ./node_modules/.bin/gulp build && ./node_modules/.bin/gulp build-docs
- cd dist/v2/OnsenUI/css-components && yarn && ./node_modules/.bin/gulp build
- cd dist/v2/OnsenUI && yarn && ./node_modules/.bin/gulp build && ./node_modules/.bin/gulp build-docs
test:
override:
- echo "Add tests!"
deployment:
staging:
branch: [master, staging]
commands:
- npm install -g gulp
- AWS_BUCKET=${AWS_BUCKET_EN} gulp deploy --lang=en
- AWS_BUCKET=${AWS_BUCKET_JA} gulp deploy --lang=ja
production:
branch: production
commands:
- npm install -g gulp
- AWS_BUCKET=${AWS_BUCKET_EN_PROD} gulp deploy --lang=en --production
- AWS_BUCKET=${AWS_BUCKET_JA_PROD} gulp deploy --lang=ja --production
- wget https://api.keycdn.com/zones/purge/38820.json --user="${KEY_CDN_API_KEY}" --password='' -v
- wget https://api.keycdn.com/zones/purge/38819.json --user="${KEY_CDN_API_KEY}" --password='' -v
new:
branch: dev_japanese
commands:
- npm install -g gulp
- AWS_BUCKET=new.onsen.io gulp deploy --lang=ja --production