Skip to content
Snippets Groups Projects
Commit 8c72cc4e authored by nimrod's avatar nimrod
Browse files

- Removed install script, found a much simpler way to install. Updated README accordingly.

- Reverted OSX TravisCi test since the only test is using pre-commit now.
parent 07b54eba
No related branches found
No related tags found
No related merge requests found
---
matrix:
include:
- os: linux
language: python
python: "3.6"
dist: trusty
sudo: false
group: beta
language: python
python: 3.6
install:
- pip install pre_commit | cat
- os: osx
language: generic
install:
- brew install shellcheck
- pip install pre_commit | cat
cache:
- pip
- directories:
......@@ -26,10 +16,11 @@ addons:
packages:
- shellcheck
install:
- pip install pre_commit | cat
script:
- pre-commit run --all-files
- cd; $TRAVIS_BUILD_DIR/install
- git bull
notifications:
email: false
......@@ -17,8 +17,14 @@ WARNING: This will overwrite your existing files.
.. code:: shell
git clone https://www.shore.co.il/git/rcfiles
rcfiles/install
cd
git clone https://www.shore.co.il/git/rcfiles .git
sed -i '/bare/d' .git/config
git reset --hard
git bull
cd .githooks
find -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \;
cd ../
License
-------
......
#!/bin/sh
set -eu
case "$0" in
\.*)
git_root="$PWD/$(dirname "$0")";;
*)
git_root="$(dirname "$0")";;
esac
for file in $(git -C "$git_root" ls-files)
do
mkdir -p "$(dirname "$HOME/$file")"
mv -f "$git_root/$file" "$HOME/$file"
done
mv "$git_root/.git" "$HOME/"
cd
rm -r "$git_root"
find -name .git -type f -exec sed -i "s@$git_root@$HOME@g" {} \;
find -name config -type f -exec sed -i "s@$git_root@$HOME@g" {} \;
git submodule update --remote
cd .githooks
find -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \;
cd ../
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment