-
Notifications
You must be signed in to change notification settings - Fork 1
/
bitbucket-pipelines.yml
66 lines (59 loc) · 2.24 KB
/
bitbucket-pipelines.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
image: jdubois/jhipster-docker
pipelines:
default:
- step:
script:
# build javaagent dependency - demo1.5
- pushd "demo1.5"
- mvn --batch-mode install
- popd
# build java agent
- pushd javaagent
- mvn --batch-mode package
- popd
# install web app dependencies
- pushd web
- npm install
# fix for `libsass` bindings not found
- npm rebuild node-sass
# build web app
- node_modules/gulp/bin/gulp.js build
# install phantomjs
- npm install -g phantomjs-prebuilt
# "run mocha tests"
- $(which phantomjs) node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html
# build & publish production version of web app for public eye
- node_modules/gulp/bin/gulp.js --env production --target website build
- cp -rf release/website ../server/dist
# build production version of web app for plugin
- node_modules/gulp/bin/gulp.js --env production --target plugin build
- popd
# build documentation
- pushd docs
- 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
- popd
# install intellij core as maven dependency
- pushd /tmp
- sh "/opt/atlassian/bitbucketci/agent/build/intellij-plugin/install-idea"
- popd
# build intellij plugin
- pushd intellij-plugin
- mvn --batch-mode package
# publish intellij plugin with server app
- mkdir ../server/dist/updates
- cp target/v*/halik-intellij-plugin.zip ../server/dist/updates/
# clean up disk space / delete local maven dependencies
- rm -rf target/dependency
- popd
# create deployment package
- mkdir "s3-deployment"
- pushd server
- zip -r ../s3-deployment/${BITBUCKET_COMMIT}.zip .
- popd