Revision 90fcfc17
Added by Andreas Kohlbecker almost 11 years ago
7.x/modules/cdm_dataportal/jenkins-ci/deploy.sh | ||
---|---|---|
14 | 14 |
VERSION=$1 |
15 | 15 |
|
16 | 16 |
# $WORKSPACE is an environment variable set by jenkins |
17 |
if [ -n "$WORKSPACE" ]; then |
|
18 |
cd $WORKSPACE |
|
17 |
if [ -z "$WORKSPACE" ]; then |
|
18 |
echo "ERROR: environment variable WORKSPACE should be set by jenkins but is missing." |
|
19 |
exit -1 |
|
19 | 20 |
fi |
20 | 21 |
|
21 | 22 |
# check if tag exists |
... | ... | |
23 | 24 |
TAG_EXISTS=(`svn info http://dev.e-taxonomy.eu/svn/tags/drupal/module-cdm_dataportal/$VERSION 2> /dev/null | grep URL`) |
24 | 25 |
set -e # turn on again "exit script on failure" |
25 | 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 |
|
39 |
|
|
26 | 40 |
if [ -z "$TAG_EXISTS" ]; then |
27 | 41 |
# it is a new version number ... |
28 | 42 |
|
... | ... | |
35 | 49 |
svn --username=$SVN_USER copy -m "branch for drupal themes $VERSION" http://dev.e-taxonomy.eu/svn/tags/drupal/themes/$VERSION http://dev.e-taxonomy.eu/svn/branches/drupal/themes-RELEASE-$VERSION |
36 | 50 |
fi |
37 | 51 |
|
52 |
|
|
53 |
# |
|
54 |
# pack and deploy the cdm_dataportal module |
|
55 |
# |
|
56 |
cd $WORKSPACE/cdm_dataportal |
|
38 | 57 |
#create the target folder |
39 | 58 |
if [ ! -d target ]; then |
40 | 59 |
mkdir target |
Also available in: Unified diff
compile sass for production purposes prior release