-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
101 lines (100 loc) · 3.16 KB
/
wercker.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
box:
id: jdubois/jhipster-docker
tag: latest
build:
steps:
- script:
name: "build javaagent dependency - test1.3"
cwd: "test1.3"
code: |
mvn --batch-mode -Dmaven.repo.local=${WERCKER_CACHE_DIR} install
- script:
name: "build bootclasspath dependency"
cwd: "bootclasspath"
code: |
mvn --batch-mode -Dmaven.repo.local=${WERCKER_CACHE_DIR} install
- script:
name: "build java agent"
cwd: javaagent
code: |
mvn --batch-mode -Dmaven.repo.local=${WERCKER_CACHE_DIR} package
- npm-install:
name: "install web app dependencies"
cwd: web
- script:
name: "fix for `libsass` bindings not found"
cwd: web
code: |
npm rebuild node-sass
- script:
name: "build web app"
cwd: web
code: |
node_modules/gulp/bin/gulp.js build
- npm-install:
name: "install phantomjs"
cwd: web
options: "-g phantomjs-prebuilt"
- script:
name: "run mocha tests"
cwd: web
code: |
$(which phantomjs) node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html
- script:
name: "build & publish production version of web app for public eye"
cwd: web
code: |
node_modules/gulp/bin/gulp.js --env production --target website build
cp -rf release/website ../server/dist
- script:
name: "build production version of web app for plugin"
cwd: web
code: |
node_modules/gulp/bin/gulp.js --env production --target plugin build
- script:
name: "build documentation"
cwd: docs
code: |
wget https://bootstrap.pypa.io/ez_setup.py
python ez_setup.py install
easy_install pip
pip install Sphinx
pip install sphinx_rtd_theme
make html
cp -rf build/html ../server/dist/docs
cp -rf build/html ../web/release/plugin/docs
- script:
name: "install intellij core as maven dependency"
cwd: /tmp
code: |
MVN_ARGS="-Dmaven.repo.local=${WERCKER_CACHE_DIR}" sh "$WERCKER_ROOT/intellij-plugin/install-idea"
- script:
name: "build intellij plugin"
cwd: intellij-plugin
code: |
mvn --batch-mode -Dmaven.repo.local=${WERCKER_CACHE_DIR} package
- script:
name: "publish intellij plugin with server app"
cwd: intellij-plugin
code: |
mkdir ../server/dist/updates
cp target/v*/halik-intellij-plugin.zip ../server/dist/updates/
- script:
name: "clean up disk space / delete local maven dependencies"
cwd: intellij-plugin
code: |
rm -rf target/dependency
deploy:
steps:
- script:
name: "create deployment package"
code: |
mkdir wercker-deployment
cd server
zip -r ../wercker-deployment/${WERCKER_GIT_COMMIT}.zip .
- s3sync:
source_dir: wercker-deployment
delete-removed: false
bucket-url: $AWS_BUCKET_URL
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY