Changeset 932


Ignore:
Timestamp:
Oct 7, 2010, 10:51:25 AM (6 years ago)
Author:
j.a.m.wesbeek@…
Message:
  • Added GSCF-specific check for the Config.groovy patch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/continuous_integration.sh

    r917 r932  
    7575MANAGER_USER=ci
    7676MANAGER_PASSWORD=berterni3
     77# Keys registered by t.w.abma[at]umcutrecht address (gscf.nmcdsp.org)
    7778OAUTHKEY=Xhu1RtLtB43yIy29EYw
    7879OAUTHSECRET=gYO5ps6JLDMEdJLOQkSBoTTbq11s8CrORqvrBkc6k
     80
     81# Keys registered by t.w.abma[at]gmail address (gscf.nmcdsp.org)
     82#OAUTHKEY=M07bnXDthzcbWD7KKSlDYw
     83#OAUTHSECRET=odfnT08AUBYhh2z0PVMS9JT11D2jASwGNzAj9YFk7s
    7984
    8085# are we user tomcat?
     
    204209sed -i 's/5432\/'$PROJECT'/5432\/'$PROJECT'-ci/g' grails-app/conf/DataSource.groovy
    205210
    206 # Adding patch for OAuth configuration file (consumer key and consumer secret generated by myExperiment).
    207 sed -i 's/\$oauthkey\$/'$OAUTHKEY'/gi' grails-app/conf/Config.groovy
    208 sed -i 's/\$oauthsecret\$/'$OAUTHSECRET'/gi' grails-app/conf/Config.groovy
     211# adding patch for OAuth configuration file (consumer key and consumer secret generated by myExperiment).
     212if [ "$PROJECT" = "gscf"]
     213then
     214        echo $STAMP GSCF project given as argument, patching Config.groovy with OAuth [key:$OAUTHKEY, SECRET:$OAUTHSECRET]...
     215        sed -i 's/\$oauthkey\$/'$OAUTHKEY'/gi' grails-app/conf/Config.groovy
     216        sed -i 's/\$oauthsecret\$/'$OAUTHSECRET'/gi' grails-app/conf/Config.groovy
     217fi
    209218
    210219# build new war
Note: See TracChangeset for help on using the changeset viewer.