Skip to content

Commit

Permalink
Merge pull request maxdemarzi#120 from kfreytag/develop
Browse files Browse the repository at this point in the history
Refactored koality configuration file
  • Loading branch information
Kurt Freytag committed Feb 28, 2014
2 parents 4360af8 + 0dd989b commit dcfb450
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions koality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ setup:
# slot in the new to-be-tested code
# in its place.
#####################################
- rm -rf /crunchbase/$KOALITY_REPOSITORY
- mv /crunchbase/* /home/crunchbase/
- rm -rf /crunchbase
- sudo ln -s /home/crunchbase /crunchbase
- sudo chown crunchbase:crunchbase /crunchbase
- cd /home/crunchbase/$KOALITY_REPOSITORY && bundle install && if [ -e bower.json ] ; then sudo -u crunchbase bower update ; fi
- for repo in `grep ":path => '/crunchbase/" Gemfile | cut -d ' ' -f 2 | sed -r "s/[',]//g"`; do cd /crunchbase/$repo && git pull && if [ -e bower.json ] ; then sudo -u crunchbase bower update ; fi && bundle install; done
- for dir in `grep "/crunchbase/$KOALITY_REPOSITORY" /crunchbase/*/Gemfile | cut -d ':' -f 1 | sed -e "s/\/Gemfile//g"`; do cd $dir && git pull && if [ -e bower.json ] ; then sudo -u crunchbase bower update ; fi && bundle install; done
- cd /crunchbase/integration && git pull && bundle install
#- rm -rf /crunchbase/$KOALITY_REPOSITORY
#- mv /crunchbase/* /home/crunchbase/
#- rm -rf /crunchbase
#- sudo ln -s /home/crunchbase /crunchbase
#- sudo chown crunchbase:crunchbase /crunchbase
- cd /crunchbase/integration && git pull origin develop && bundle install
- cd /crunchbase/$KOALITY_REPOSITORY && bundle install
#- cd /crunchbase && /crunchbase/integration/bin/recurse git pull origin develop
#- cd /crunchbase && /crunchbase/integration/bin/recurse bundle install
#- cd /crunchbase/site && sudo -u crunchbase bower update
#- cd /crunchbase/admin && sudo -u crunchbase bower update
####################################
# Create and Seed the Database
# ----------------------------------
Expand All @@ -37,24 +39,24 @@ test:
script: bundle exec rake ci_spec
timeout: 1800
xunit: spec/reports
factories:
- setup factory:
script:
# factories:
# - setup factory:
# script:
#########################################
# Test affected repos
# ---------------------------------------
# Look up and test each repository that
# depends upon the repository that is
# being tested.
#########################################
- |
for dir in `grep "/crunchbase/$KOALITY_REPOSITORY" /crunchbase/*/Gemfile | cut -d ':' -f 1 | sed -e "s/\/Gemfile//g"`; do
if [ -e $dir/Rakefile ] && grep -q "ci_spec" $dir/Rakefile
then
echo " - `echo $dir | cut -d '/' -f 3`:"
echo " path: $dir"
echo " script: bundle exec rake ci_spec"
echo " xunit: spec/reports"
echo " timeout: 1800"
fi
done
# - |
# for dir in `grep "/crunchbase/$KOALITY_REPOSITORY" /crunchbase/*/Gemfile | cut -d ':' -f 1 | sed -e "s/\/Gemfile//g"`; do
# if [ -e $dir/Rakefile ] && grep -q "ci_spec" $dir/Rakefile
# then
# echo " - `echo $dir | cut -d '/' -f 3`:"
# echo " path: $dir"
# echo " script: bundle exec rake ci_spec"
# echo " xunit: spec/reports"
# echo " timeout: 1800"
# fi
# done

0 comments on commit dcfb450

Please sign in to comment.