Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Setup some test folders/repos in the VMs for easier testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dritter committed Mar 21, 2017
1 parent 4331ed2 commit a4a8afb
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test-vm-providers/plain.sh
@@ -1,4 +1,7 @@
#!/usr/bin/zsh

echo 'LANG=en_US.UTF-8' >! ~/.zshrc
echo 'source /vagrant_data/powerlevel9k.zsh-theme' >> ~/.zshrc
echo 'source /vagrant_data/powerlevel9k.zsh-theme' >> ~/.zshrc

# setup environment
/vagrant_data/test-vm-providers/setup-environment.sh
44 changes: 44 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions test-vm/antigen.sh
Expand Up @@ -24,4 +24,7 @@ antigen apply
mkdir ~/antigen
curl -qL https://raw.githubusercontent.com/zsh-users/antigen/master/antigen.zsh > ~/antigen/antigen.zsh
source ~/antigen/antigen.zsh

# setup environment
/vagrant_data/test-vm-providers/setup-environment.sh
)
2 changes: 2 additions & 0 deletions test-vm/omz.sh
Expand Up @@ -28,4 +28,6 @@ plugins=(git rake ruby)
source $ZSH/oh-my-zsh.sh
' > $HOME/.zshrc

# setup environment
/vagrant_data/test-vm-providers/setup-environment.sh
)
3 changes: 3 additions & 0 deletions test-vm/prezto.sh
Expand Up @@ -23,4 +23,7 @@ chmod 440 /etc/sudoers.d/$NEW_USER

ln -s /vagrant_data/powerlevel9k.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup
sed -i "s/theme\ 'sorin'/theme\ 'powerlevel9k'/g" ~/.zpreztorc

# setup environment
/vagrant_data/test-vm-providers/setup-environment.sh
)

0 comments on commit a4a8afb

Please sign in to comment.