-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (44 loc) · 1.7 KB
/
.travis.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
language: java
jdk: oraclejdk8
env:
global:
- MAVEN_OPTS="-XX:MaxPermSize=512m"
sudo: false
#before_script:
#- gem install jekyll --version '= 1.5.1'
#- gem install RedCloth
script:
# Build documentation web site
#- cd documentation
#- ls
#- jekyll build
#- ls
#- cd ../
# Integrate the documentation to Eclipse
#- rm -rf plugins/org.obeonetwork.dsl.organizationchart.design.doc/html
#- cp -r documentation/_site plugins/org.obeonetwork.dsl.organizationchart.design.doc/html
#- ls plugins/org.obeonetwork.dsl.organizationchart.design.doc/html
# Build organizationchart
#- mvn clean verify
# Build organizationchart products
- mvn clean package -f releng/org.obeonetwork.dsl.organizationchart.product.parent/pom.xml
# Prepare local dirs to deploy: copy repository, bundles and tp
- chmod a+x prepare-deploy-local-dir.sh
- echo "$TRAVIS_TAG"
# Prepare tag dir if it is a tagged build
- if [[ "$TRAVIS_TAG" != "" ]]; then ./prepare-deploy-local-dir.sh $TRAVIS_BUILD_DIR/$TRAVIS_TAG; fi
# Rename the zipped update site to nightly
- mv packaging/org.obeonetwork.dsl.organizationchart.update/target/org.obeonetwork.dsl.organizationchart.update-*-SNAPSHOT.zip packaging/org.obeonetwork.dsl.organizationchart.update/target/org.obeonetwork.dsl.organizationchart.update-nightly.zip
# Prepare the nightly dir
- ./prepare-deploy-local-dir.sh $TRAVIS_BUILD_DIR/nightly
after_script:
# Promote web site on gh-pages only for master branch
#- chmod a+x travis-promote.sh
#- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./travis-promote.sh; fi
#deploy:
#provider: releases
#api_key: "GITHUB OAUTH TOKEN"
#file: packaging/org.obeonetwork.dsl.organizationchart.product/target/products/*.zip
#skip_cleanup: true
#on:
# tags: true