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 step before_deploy

    , but the problem remains (build # 13).
  • If I click an already existing folder /dist

    with index.html

    in it, it expands perfectly ( https://travis-ci.org/damrem/anm-client/builds/35583904 )
+3


source to share


1 answer


It looks like it might be caused by a typo. Downstairs for you skin_cleanup: true

when it should be skip_cleanup: true

. If skipping cleanup is not enabled, Travis will "reset" the code to the exact state of the git checkout before starting the deployment.



+2


source







All Articles