dotfiles/windows/build_insider.sh

48 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
set -e
DOTFILES_PATH="$HOME/dev/dotfiles"
mkdir -pv $HOME/dev/
2016-11-03 20:57:00 +00:00
ln -vfs "$OUTER_CLONE/.gitconfig.cygwin" $HOME/.gitconfig
2016-11-01 13:35:53 +00:00
if [[ ! -d $DOTFILES_PATH ]]; then
git clone "$OUTER_CLONE" "$DOTFILES_PATH"
fi
cd "$DOTFILES_PATH"
2016-11-01 17:24:18 +00:00
git remote set-url origin https://github.com/cyplo/dotfiles.git
2016-11-03 09:43:41 +00:00
git fetch -p
git checkout $branch
set +e
2016-11-01 17:24:18 +00:00
git pull
set -e
2016-11-01 17:24:18 +00:00
git remote set-url origin git@github.com:cyplo/dotfiles.git
# might fail on CI where there are no secret keys
set +e
2016-11-01 13:35:53 +00:00
git pull
2016-11-01 17:24:18 +00:00
set -e
unset branch
2016-08-05 08:56:31 +01:00
export NOSUDO=true
export DONT_CHANGE_SHELL=true
export NORUST=true
2016-08-05 09:14:23 +01:00
export NO_GO=true
2016-08-05 08:56:31 +01:00
export DIR=$DOTFILES_PATH
export NOYCM=true
2016-08-05 08:56:31 +01:00
2016-08-05 09:27:31 +01:00
curl https://bootstrap.pypa.io/get-pip.py > /tmp/get-pip.py
python /tmp/get-pip.py
# expose all the binaries fetched during the outer build
export PATH="$OUTER_CLONE:$PATH"
2016-08-05 08:56:31 +01:00
$DIR/common/configure_fresh_system
2016-08-21 17:22:40 +01:00
ln -vfs $DIR/windows_cygwin/.minttyrc $HOME/
2016-11-03 20:57:00 +00:00
ln -vfs "$DOTFILES_PATH/.gitconfig.cygwin" $HOME/.gitconfig
ln -vfs $DIR/.vimrc.cygwin $HOME/.vimrc
# reinstall plugins with the new vimrc
echo "Reinstalling Vim plugins with the correct plugin list"
echo "\n" | vim +PluginInstall +qa