I have a github repository user/repo
but the real project is in a subfolder user/repo/project/build.sbt
What should I write in the .travis.yml
to make Travis ignore the top folder and work only in the project folder?
Inspired by this I tried the following which didn't work:
env:
global:
- REPO="user/repo"
- CI_HOME=`pwd`/$REPO
script: sh -c 'cd $CI_HOME/project' && sbt ++$TRAVIS_SCALA_VERSION package
Error log:
$ sh -c 'cd $CI_HOME/project' && sbt ++$TRAVIS_SCALA_VERSION package
Detected sbt version 0.12.2-RC1
/home/travis/build/user/repo doesn't appear to be an sbt project.
Ideally there should be a way to specify the build folder but let Travis handle the build command.