node-markdown-spellcheck icon indicating copy to clipboard operation
node-markdown-spellcheck copied to clipboard

Exit code

Open codingjoe opened this issue 9 years ago • 3 comments

Hi,

I might just do something wrong, but travis doesn't fail on translation errors.

https://travis-ci.org/codingjoe/django-cc/jobs/122596051

The funny thing is, when I run the same command locally it works:

mdspell --en-us -ran "**/*.md"; echo $?
    howto/travis-ci.md
        4 | with Github. 
        9 | Travis-CI is free for OpenSource projects. We encourage you to 
       11 | OpenSource packages you rely on every da 
       20 | Next head over to [travis-ci.org](https://travis-ci.org/)  
       23 | If you have the [travis command line tool] installed  
       28 | ## Automatic PyPi deployment 
       31 | [PyPi deployment](https://docs.trav 
       34 | [travis command line tool] 
       43 | Type in your PyPi username and password and ans 
       46 | ew deployment section in your travis 
       47 | config. Similar to this: 
       65 | Github. 
       71 | Travis-CI will now do the PyPi deployment for you! 

    README.md
      114 | ### pydocstyle 
      116 | [pydocstyle][pydocstyle] checks doc strin 

>> 15 spelling errors found in 3 files
1

codingjoe avatar Apr 13 '16 07:04 codingjoe

Sorry, I came to this super late - did you solve it? Not sure what else we can do - either its a travis issue (which stage are you running in? some stages ignore the return code) or I'm missing something about return codes.

lukeapage avatar Jun 03 '16 04:06 lukeapage

Hm... no, I'm running this in script. But I think I fixed it for me somehow. I don't remember what I did tho... sorry.

codingjoe avatar Jun 06 '16 07:06 codingjoe

Oh wait, just tried it again. Still doesn't work and it is executed in the script section. This is the line that doesn't do return a none 0 exit code for me. Even tho it prints a lot of errors.

mdspell --en-us -ran "**/*.md"

codingjoe avatar Jun 06 '16 08:06 codingjoe