title: Grails: command not found with Travis-CI
body: <p>I want to use <a href="https://travis-ci.org/" rel="nofollow">Travis-CI</a> with my Grails 3.0.9 app. For this I created a <code>.travis.yml</code> file:</p>
  
  <pre><code>language: groovy
  
  jdk:
    - oraclejdk7
  
  before_install:
   - curl -s get.sdkman.io | bash
   - source "$HOME/.sdkman/bin/sdkman-init.sh"
   - sdk install grails 3.0.9
   - sdk default grails 3.0.9
  
  script: grails test-app --stacktrace
  </code></pre>
  
  <p>When the Travis-CI service wants to build my application, it ends up with this error:</p>
  
  <pre><code>$ export GRAILS_HOME=/home/travis/.sdkman/candidates/grails/3.0.9/
  $ export PATH=$PATH:$GRAILS_HOME/bin
  $ ./gradlew assemble
  ...
  (downloading a lot of gradle dependencies)
  ...
  BUILD SUCCESSFUL
  $ grails test-app
  /home/travis/build.sh: line 45: grails: command not found
  </code></pre>
  
  <p>So do I have to install Grails somehow else or is it because of a missing/wrong path variable?</p>