Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for other project types #15

Closed
antonmedv opened this issue Mar 24, 2017 · 8 comments
Closed

Add support for other project types #15

antonmedv opened this issue Mar 24, 2017 · 8 comments

Comments

@antonmedv
Copy link

For example for PHP projects.

@juliangruber
Copy link
Owner

This for example now works with the Symfony project as well:

screen shot 2017-03-24 at 08 05 59

Feel free to open more issues for different build environments :)

@antonmedv
Copy link
Author

Got this on https://github.com/deployphp/deployer

$ travis-watch
module.js:472
    throw err;
    ^

Error: Cannot find module '/Users/anton/Projects/deployer/package.json'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/travis-watch/index.js:19:22)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

@juliangruber
Copy link
Owner

oh sorry, you need to upgrade your cli first:

$ npm install -g travis-watch@latest

@antonmedv
Copy link
Author

Now working, but:

$ travis-watch --help
child_process.js:524
    throw err;
    ^

Error: spawnSync /bin/sh ENOENT
    at exports._errnoException (util.js:1034:11)
    at spawnSync (child_process.js:459:20)
    at Object.execSync (child_process.js:515:13)
    at module.exports.sync.dir (/usr/local/lib/node_modules/travis-watch/node_modules/git-current-commit/index.js:17:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/travis-watch/index.js:16:18)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

@juliangruber
Copy link
Owner

there's no --help yet, I added an issue here #27

@antonmedv
Copy link
Author

But throw error with call stack is bad DX.

@juliangruber
Copy link
Owner

goot point, i'll add a more meaningful error message in that case

@juliangruber
Copy link
Owner

the latest version now also prints a nice error here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants