language:
  ruby

cache:
  bundler

rvm:
  - '2.1'
  - '2.2'
  - '2.3.0'
  - '2.4.0'
  - '2.5.0'

script:
  - bundle exec rubocop
  - bundle exec rspec
  - rake install
  - colorls
  - colorls -1
  - colorls -a
  - colorls -A
  - colorls -d
  - colorls -f
  - colorls -l
  - colorls -l spec/fixtures/symlinks
  - ( cd spec/fixtures ; colorls .hidden-file ) | fgrep '.hidden-file'
  - colorls -l README.md
  - colorls -r
  - colorls --sd
  - colorls --sf
  - colorls --hyperlink
  - colorls -t
  - colorls --sort=time
  - colorls -U
  - colorls --sort=none
  - colorls -S
  - colorls --sort=size
  - colorls -h
  - colorls --gs
  - colorls spec/fixtures/symlinks
  - colorls README.md
  - colorls *
  - colorls | grep /
  - colorls --color
  - colorls --color=auto
  - colorls --color=never
  - colorls --color=always


language:
  ruby

cache:
  bundler

rvm:
  - '2.1'
  - '2.2'
  - '2.3.0'
  - '2.4.0'
  - '2.5.0'

script:
  - bundle exec rubocop
  - bundle exec rspec
  - bundle exec rake install
  - bundle binstubs colorls
  - PATH=$PWD/bin:$PATH
  - colorls
  - colorls -1
  - colorls -a
  - colorls -A
  - colorls -d
  - colorls -f
  - colorls -l
  - colorls -l spec/fixtures/symlinks
  - ( cd spec/fixtures ; colorls .hidden-file ) | fgrep '.hidden-file'
  - colorls -l README.md
  - colorls -r
  - colorls --sd
  - colorls --sf
  - colorls --hyperlink
  - colorls -t
  - colorls --sort=time
  - colorls -U
  - colorls --sort=none
  - colorls -S
  - colorls --sort=size
  - colorls -h
  - colorls --gs
  - colorls spec/fixtures/symlinks
  - colorls README.md
  - colorls *
  - colorls | grep /
  - colorls --color
  - colorls --color=auto
  - colorls --color=never
  - colorls --color=always


Fix build failure on `rake install`
Fix build failure on `rake install`

```
$ rake install
rake aborted!
Gem::LoadError: You have already activated rake 12.3.0, but your Gemfile requires rake 12.3.1. Prepending `bundle exec` to your command may solve this.d
```

* use `bundle exec rake install` instead as suggested
* generate binstubs with bundler and prepend `bin/` to `PATH`
