question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Travis-ci builds fail out of the box due to missing script 'test-on-travis'

See original GitHub issue

https://travis-ci.org/jensim/myStreamWeb

0.40s$ npm run-script test-on-travis
npm ERR! Linux 3.13.0-40-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v5.11.1/bin/node" "/home/travis/.nvm/versions/node/v5.11.1/bin/npm" "run-script" "test-on-travis"
npm ERR! node v5.11.1
npm ERR! npm  v3.8.6
npm ERR! missing script: test-on-travis
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/jensim/myStreamWeb/npm-debug.log
The command "npm run-script test-on-travis" failed and exited with 1 during .
Your build has been stopped.

My .yo-rc.json:

{
  "generator-ng-fullstack": {
    "username": "jensim",
    "appName": "myStreamJS",
    "stack": "fullstack",
    "server": "node",
    "client": "ng2",
    "transpilerServer": "typescript",
    "secure": true,
    "differentStaticServer": false
  }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ericmdantascommented, Jun 22, 2016

Hello, @jensim. Thanks for pointing it out.

I moved some things around and might’ve forgotten about this one.

Can you please change the content of the travis file for the following:

language: node_js

node_js:
  - "stable"

before_script:
  - npm install -g typings typescript istanbul gulp-cli mocha
  - typings install
  - tsc

script:
  - npm run test-server

services: mongodb

Just to see if travis didn’t change a few things that used to work.

Also, keep in mind that if you’re testing ng2 too, the build will fail because of #101.

0reactions
ericmdantascommented, Aug 30, 2016

Cool 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Build Problems - Travis CI Docs
My tests broke but were working yesterday; My build script is killed without any error; My build fails unexpectedly; Segmentation faults from the...
Read more >
After migrating to travis-ci.com (from org), I get "An error ...
I had warning regarding build config that I am missing root lvl “os:” declaration and that default “linux” is used.
Read more >
Powershell tests in TravisCI fail due to missing ...
I'm playing with powershell and run my test locally and on TravisCI. Module Manifest. RequiredModules = @('ClipboardText'). Travis Config.
Read more >
Create a Build Pipeline with Travis CI - Baeldung
If any step fails, the pipeline terminates and it will notify us. Out of the box, Travis CI requires very little configuration.
Read more >
Send an SMS When Your Build Fails on Travis CI - Twilio
Out of the box, Lumen makes it easy to create mock data using factories. Model factories are defined in the file database/factories/ModelFactory ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found