diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-03-21 05:03:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 05:03:32 +0300 |
commit | 9e40f2d9f2d9c6a193cc67b7577666c3f782a010 (patch) | |
tree | 6143ce8e243ceb67bb4819b234b06859e2b1972f /test-vm-providers/setup-environment.sh | |
parent | 0132c5dc35eefa428e0b914c724c28c8068ac7e1 (diff) | |
parent | 3ef7fb35f818a44c029eea7e8196f75a6b0e6eba (diff) |
Merge pull request #452 from dritter/improve_travis_and_vms
Improve travis and VMs
Diffstat (limited to 'test-vm-providers/setup-environment.sh')
-rwxr-xr-x | test-vm-providers/setup-environment.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test-vm-providers/setup-environment.sh b/test-vm-providers/setup-environment.sh new file mode 100755 index 00000000..0e8beb6d --- /dev/null +++ b/test-vm-providers/setup-environment.sh @@ -0,0 +1,44 @@ +#!/usr/bin/zsh + +OLDPWD="$(pwd)" +cd $HOME + +TESTFOLDER="${HOME}/p9k" +mkdir -p $TESTFOLDER +cd $TESTFOLDER + +# Make a deep test folder +mkdir -p deep-folder/1/12/123/1234/12345/123456/1234567/123455678/123456789 + +# Make a git repo +mkdir git-repo +cd git-repo +git config --global user.email "test@powerlevel9k.theme" +git config --global user.name "Testing Tester" +git init +echo "TEST" >> testfile +git add testfile +git commit -m "Initial commit" +cd $TESTFOLDER + +# Make a Mercurial repo +mkdir hg-repo +cd hg-repo +export HGUSER="Test bot <bot@example.com>" +hg init +echo "TEST" >> testfile +hg add testfile +hg ci -m "Initial commit" +cd $TESTFOLDER + +# Setup a SVN folder +svnadmin create ~/.svn-repo +mkdir svn-repo +svn checkout "file://${HOME}/.svn-repo" "svn-repo" +cd svn-repo +echo "TEST" >> testfile +svn add testfile +svn commit -m "Initial commit" +cd $TESTFOLDER + +cd $OLDPWD
\ No newline at end of file |