Where is the / dist directory after building Travis?
I am trying to deploy AngularJS app to Divshot hosting via Travis CI.
This app contains a directory /dist
that:
- where the Grunt build result (as in local) goes
-
.gitignore
d, so not pressed (Travis has to rebuild it) - installed as the root directory of the Divshot application
Travis installs the prints and runs the build, thanks to this file .travis.yml
:
language: node_js
node_js:
- '0.10'
install:
- "npm install"
- "gem install compass"
- "bower install"
script:
- "grunt build"
deploy:
provider: divshot
environment:
master: development
api_key:
secure: ...
skin_cleanup: true
But when it comes to deployment, Travis says:
Error: Your app root directory does not exists.
This is actually the message from divshot-cli
, because the directory /dist
does not exist. I get the same message when I do divshot push
in a local file after /dist
dir is removed .
Here is an assembly that cannot be deployed: https://travis-ci.org/damrem/anm-client/builds/35582994
How come dir /dist
doesn't exist on VM Travis after running setup and build OK?
Notes:
- I tried to replace step
script
with stepbefore_deploy
, but the problem remains (build # 13). - If I click an already existing folder
/dist
withindex.html
in it, it expands perfectly ( https://travis-ci.org/damrem/anm-client/builds/35583904 )
source to share