forked from AnyBucket-Lab/circleci-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
32 lines (28 loc) · 1.27 KB
/
circle.yml
File metadata and controls
32 lines (28 loc) · 1.27 KB
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
checkout:
post:
- git submodule update --init resources/public/vendor/font-awesome
dependencies:
cache_directories:
- "~/.cache/bower"
post:
- node_modules/bower/bin/bower install || (sleep 2; node_modules/bower/bin/bower install)
- "[[ -d resources/components ]] || node_modules/bower/bin/bower install"
- case $CIRCLE_NODE_INDEX in 0) lein cljsbuild once test;; 1) lein cljsbuild once production;; esac |& tee cljsbuild.log:
parallel: true
timeout: 600
# fail if there are any warnings in the cljsbuild output that *aren't* the sablano `string` thing.
# See: https://github.com/r0man/sablono/issues/33
- "! grep WARNING < cljsbuild.log | grep -v 'WARNING: Use of undeclared Var [a-z0-9\\.]*/string'"
- rsync -avz --ignore-existing node1:./$CIRCLE_PROJECT_REPONAME/resources/public/cljs/production ./resources/public/cljs/: {parallel: true}
- rsync -avz --ignore-existing node0:./$CIRCLE_PROJECT_REPONAME/resources/public/cljs/test ./resources/public/cljs/: {parallel: true}
- lein run -m frontend.tasks.http/precompile-assets
test:
pre:
- git grep --color TODO | cat
post:
- node_modules/karma/bin/karma start karma.test.conf.js --single-run
deployment:
deploy:
branch: /.+/
commands:
- script/deploy.sh