machine:
  environment:
    XDG_CONFIG_HOME: $HOME/.config
    XDG_DATA_HOME: $HOME/.local/share
    XDG_CACHE_HOME: $HOME/.cache
    GOPATH: $HOME/go

dependencies:
  pre:
    - grep "physical id" /proc/cpuinfo | sort -u | wc -l
    - grep "cpu cores" /proc/cpuinfo |sort -u |cut -d":" -f2
    - grep -c "processor" /proc/cpuinfo
    - git clone https://github.com/syngan/vim-vimlint /tmp/vim-vimlint
    - git clone https://github.com/ynkdir/vim-vimlparser /tmp/vim-vimlparser
    - curl https://raw.githubusercontent.com/mkwmms/speed-cola/master/cola -L > /tmp/speed-cola.sh
    - sudo apt-get update
    - sudo apt-get install shellcheck

test:
  pre:
    - sh /tmp/speed-cola.sh
  override:
    - sh /tmp/vim-vimlint/bin/vimlint.sh -l /tmp/vim-vimlint -p /tmp/vim-vimlparser -v vimrc *.vim config lib
    - shellcheck --shell=bash cola

machine:
  ghc:
    version: 7.10.1
  
  environment:
    XDG_CONFIG_HOME: $HOME/.config
    XDG_DATA_HOME: $HOME/.local/share
    XDG_CACHE_HOME: $HOME/.cache
    GOPATH: $HOME/go

dependencies:
  pre:
    - grep "physical id" /proc/cpuinfo | sort -u | wc -l
    - grep "cpu cores" /proc/cpuinfo |sort -u |cut -d":" -f2
    - grep -c "processor" /proc/cpuinfo
    - git clone https://github.com/syngan/vim-vimlint /tmp/vim-vimlint
    - git clone https://github.com/ynkdir/vim-vimlparser /tmp/vim-vimlparser
    - git clone https://github.com/koalaman/shellcheck.git /tmp/shellcheck
    - curl https://raw.githubusercontent.com/mkwmms/speed-cola/master/cola -L > /tmp/speed-cola.sh
  override: 
    - cd /tmp/shellcheck && cabal install --jobs

test:
  pre:
    - sh /tmp/speed-cola.sh
  override:
    - sh /tmp/vim-vimlint/bin/vimlint.sh -l /tmp/vim-vimlint -p /tmp/vim-vimlparser -v vimrc *.vim config lib
    - shellcheck --shell=bash cola

Switch back to cabal to install shellcheck
Switch back to cabal to install shellcheck