Commit 40b2cf50 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 a5899791
Loading
Loading
Loading
Loading
+8 −17
Original line number Diff line number Diff line
---
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
+8 −2
Original line number Diff line number Diff line
@@ -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
-------

install

deleted100755 → 0
+0 −22
Original line number Diff line number Diff line
#!/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 ../