Skip to content

Instantly share code, notes, and snippets.

@mteodori
Last active January 22, 2020 12:52
Show Gist options
  • Save mteodori/70c66301a4bbe04fb218badd809a7b86 to your computer and use it in GitHub Desktop.
Save mteodori/70c66301a4bbe04fb218badd809a7b86 to your computer and use it in GitHub Desktop.
Build Tools for Activiti and Activiti Cloud

A script to checkout and build all the Activiti repositories.

# Editor configuration, see http://editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
[*.java]
indent_size = 4
[*.md]
max_line_length = off
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
target
/local
# Netbeans and IntelliJ files
!.gitignore
/nbproject
/*.ipr
/*.iws
*.iml
.idea
# Repository wide ignore mac DS_Store files
.DS_Store
# Eclipse
.project
.classpath
.settings
\.metadata/
/.recommenders/
.factorypath
.springBeans
#!/usr/bin/env bash
set -e
SCRIPT_DIR=$(dirname $0)
for PROJECT in ${PROJECTS:-activiti}
do
REPOS="$REPOS $(cat $SCRIPT_DIR/repos-${PROJECT}.txt)"
done
echo SCRIPT_DIR=$SCRIPT_DIR
echo working with REPOS $REPOS
mkdir -p ${SRC_DIR:-~/src} && cd $_
for REPO in $REPOS
do
pushd $PWD > /dev/null
echo "*************** BUILDING $REPO START ***************"
if ! [ -d "$REPO" ]
then
REPO_DIR=$(dirname $REPO)
mkdir -p $REPO_DIR
cd $REPO_DIR
git clone [email protected]:$REPO.git
cd $(basename $REPO)
else
cd $REPO
fi
echo $PWD
if [ -n "$CHECKOUT" ]
then
git checkout ${BRANCH:-develop}
git pull --rebase
fi
mvn ${MAVEN_ARGS:-clean install}
echo "**************** BUILDING $REPO END ****************"
popd > /dev/null
done
Activiti/activiti-cloud-audit
Activiti/activiti-cloud-query
Activiti/example-runtime-bundle
Activiti/activiti-cloud-messages
Activiti/example-cloud-connector
Activiti/activiti-cloud-modeling
Activiti/activiti-cloud-build
Activiti/activiti-cloud-api
Activiti/activiti-cloud-service-common
Activiti/activiti-cloud-runtime-bundle-service
Activiti/activiti-cloud-messages-service
Activiti/activiti-cloud-audit-service
Activiti/activiti-cloud-query-service
Activiti/activiti-cloud-modeling-service
Activiti/activiti-cloud-connectors
Activiti/activiti-cloud-dependencies
Activiti/activiti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment