Add 1.8.7 to `rvm` and adding this should do it:

```
matrix:
  exclude:
    - rvm: 1.8.7
      gemfile: gemfiles/Gemfile.rails-2.3.x
```