-
Notifications
You must be signed in to change notification settings - Fork 11
/
circle.yml
86 lines (81 loc) · 2.64 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
machine:
timezone: Asia/Tokyo
java:
version: oraclejdk7
node:
version: 0.10.32
pre:
- git config --global user.name "CircleCI"
- git config --global user.email "[email protected]"
post:
- echo -e $PGP_KEY > ~/sec.key
- gpg --import --allow-secret-key-import ~/sec.key
- rm ~/sec.key
- mkdir -p ~/.gradle
- echo 'signing.keyId=CC041648' > ~/.gradle/gradle.properties
environment:
SBT_OPTS: -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M
dependencies:
cache_directories:
- ~/.gradle
- ~/.sbt
- ~/.ivy2
- ~/.m2
- ~/aeromock/aeromock-view/components
- ~/aeromock/aeromock-view/node_modules
- ~/aeromock/aeromock-server/target/resolution-cache
- ~/aeromock/aeromock-freemarker/target/resolution-cache
- ~/aeromock/aeromock-handlebars-java/target/resolution-cache
- ~/aeromock/aeromock-jade4j/target/resolution-cache
- ~/aeromock/aeromock-velocity/target/resolution-cache
- ~/aeromock/aeromock-groovy-template/target/resolution-cache
- ~/aeromock/aeromock-thymeleaf/target/resolution-cache
pre:
- npm install -g grunt-cli bower
- ./gradlew install -x signArchives:
pwd: aeromock-dsl
- npm install:
pwd: aeromock-view
- bower install:
pwd: aeromock-view
- grunt build:
pwd: aeromock-view
override:
- ./sbt test:compile
- pip install fabric
test:
override:
- ./sbt test
post:
- >
if [ -n "${RUN_NIGHTLY_BUILD}" ]; then
echo "start to measure coverage report."
./sbt scoverage:test
./sbt coveralls
fi
- cp -R aeromock-server/target/test-reports/* $CIRCLE_ARTIFACTS
- cp -R aeromock-freemarker/target/test-reports/* $CIRCLE_ARTIFACTS
- cp -R aeromock-handlebars-java/target/test-reports/* $CIRCLE_ARTIFACTS
- cp -R aeromock-jade4j/target/test-reports/* $CIRCLE_ARTIFACTS
- cp -R aeromock-velocity/target/test-reports/* $CIRCLE_ARTIFACTS
- cp -R aeromock-groovy-template/target/test-reports/* $CIRCLE_ARTIFACTS
- cp -R aeromock-thymeleaf/target/test-reports/* $CIRCLE_ARTIFACTS
notify:
webhooks:
- url: https://webhooks.gitter.im/e/73037938e5ad665bdbd5
deployment:
snapshot:
branch: /^feature\/.+$/
owner: CyberAgent
commands:
- ./aeromock-dsl/gradlew -p aeromock-dsl uploadArchives
- ./sbt publishSigned
next:
branch: /^next\/.+$/
owner: CyberAgent
commands:
- echo "current branch is $CIRCLE_BRANCH."
- git checkout master
- git merge origin/master
- fab release:next_version=`echo $CIRCLE_BRANCH | sed -e 's/^next\/\(.*\)$/\1/'`
- exit $?