Revision 17fdb72c
Added by Andreas Kohlbecker almost 11 years ago
7.x/modules/cdm_dataportal/jenkins-ci/deploy.sh | ||
---|---|---|
24 | 24 |
TAG_EXISTS=(`svn info http://dev.e-taxonomy.eu/svn/tags/drupal/module-cdm_dataportal/$VERSION 2> /dev/null | grep URL`) |
25 | 25 |
set -e # turn on again "exit script on failure" |
26 | 26 |
|
27 |
# |
|
28 |
# compile the sass files to css in the zen_dataportal theme |
|
29 |
# this will create the versions needed for production |
|
30 |
# |
|
31 |
if [ -x "$COMPASS" ]; then |
|
32 |
$COMPASS clean $WORKSPACE/themes/zen_dataportal/ |
|
33 |
$COMPASS compile $WORKSPACE/themes/zen_dataportal/ |
|
34 |
svn --username=$SVN_USER ci -m "sass compiled for production purposes prior release" |
|
35 |
else |
|
36 |
echo "ERROR on sass compilation since the evnvironment variable COMPASS is either missing or not the file "$COMPASS" is not executable" |
|
37 |
exit 1 |
|
38 |
fi |
|
27 |
|
|
39 | 28 |
|
40 | 29 |
if [ -z "$TAG_EXISTS" ]; then |
41 | 30 |
# it is a new version number ... |
42 | 31 |
|
32 |
# |
|
33 |
# compile the sass files to css in the zen_dataportal theme |
|
34 |
# this will create the versions needed for production |
|
35 |
# |
|
36 |
if [ -x "$COMPASS" ]; then |
|
37 |
$COMPASS clean $WORKSPACE/themes/zen_dataportal/ |
|
38 |
$COMPASS compile $WORKSPACE/themes/zen_dataportal/ |
|
39 |
svn --username=$SVN_USER ci -m "sass compiled for production purposes prior release" |
|
40 |
else |
|
41 |
echo "ERROR on sass compilation since the evnvironment variable COMPASS is either missing or not the file "$COMPASS" is not executable" |
|
42 |
exit 1 |
|
43 |
fi |
|
44 |
|
|
43 | 45 |
# create release tag and branch for the module |
44 | 46 |
svn --username=$SVN_USER copy -m "release tag for cdm_dataportal $VERSION" http://dev.e-taxonomy.eu/svn/trunk/drupal/${DRUPAL_VERSION}.x/modules/cdm_dataportal http://dev.e-taxonomy.eu/svn/tags/drupal/module-cdm_dataportal/$VERSION |
45 | 47 |
svn --username=$SVN_USER copy -m "branch for cdm_dataportal $VERSION" http://dev.e-taxonomy.eu/svn/tags/drupal/module-cdm_dataportal/$VERSION http://dev.e-taxonomy.eu/svn/branches/drupal/module-cdm_dataportal-RELEASE-$VERSION |
Also available in: Unified diff
minor modification of deployment script