Skip to content

Commit

Permalink
Updated scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Jun 30, 2015
1 parent cad56dc commit 8dacec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ fi

if [ $github == 'true' ] ; then
echo_title "PUBLISH TO GITHUB"
git push origin $branch --tags
git push git@github.com:example42/puppet-${modulename}.git $branch --tags
fi

if [ $updatecollection == 'true' ] ; then
echo_title "UPDATING SUBMODULE ON COLLECTION REPO"
cd ../
git add $modulename
git add --all $modulename
git commit -m "Updated $modulename $version"
git push
git push git@github.com:example42/puppet-modules.git master
cd $modulename
fi

Expand Down
12 changes: 3 additions & 9 deletions quick_multiplerun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,16 @@ echo 'Do not run if you dont know what it does'
echo 'Edit the script directly to enable it, customize commands to run and modules list'

# Comment below to activate script
exit 1
# exit 1

# Define the modules list and assign it to the $modules variable
modules=$(cat /tmp/modules-list)

# Sample set of commands to run for each module
run_commands () {
cp Example42-templates/standard42/.travis.yml $1/
cp Example42-templates/standard42/.gemfile $1/
sed "s/standard42/$1/" Example42-templates/standard42/.fixtures.yml > $1/.fixtures.yml
cp Example42-templates/standard42/Rakefile $1/
cp Example42-templates/standard42/spec/spec_helper.rb $1/spec/
cd $1
git add .travis.yml .gemfile .fixtures.yml Rakefile spec/spec_helper.rb
git commit -m "Enabling Travis integration"
git push git@github.com:example42/puppet-$1.git master
rm Modulefile
../Example42-tools/publish.sh -nc
cd ..
}

Expand Down

0 comments on commit 8dacec9

Please sign in to comment.