Skip to content

Instantly share code, notes, and snippets.

@HeinPauwelyn
Last active January 7, 2017 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HeinPauwelyn/4060fb7bbd44c8da3b4da1400faa7b25 to your computer and use it in GitHub Desktop.
Save HeinPauwelyn/4060fb7bbd44c8da3b4da1400faa7b25 to your computer and use it in GitHub Desktop.
Travis failed push but passed PR
install:
- npm install
- npm install -g angular-cli
language: node_js
script:
- gulp html
- gulp scss
- gulp ts
- gulp node
- npm run build
node_js:
- "6.9"
cache:
directories:
- node_modules
- bower_components

Travis failed push but passed PR

How is it possible that Travis the build failed for the latest push but passed the Pull Request?

On this Gist you could find the failed and passed output log of the npm run build command that Travis gives. You could also find the configuration of Travis.

Answers below and/or on Stack Overflow and/or Code Project possible.

Links:

$ npm run build
> watchfriends@0.0.0 build /home/travis/build/WatchFriends/Web
> ng build --prod --aot
10% building modules 2/2 modules 0 activeCannot read property 'request' of undefined
TypeError: Cannot read property 'request' of undefined
at handleExternals (/home/travis/build/WatchFriends/Web/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js:37:33)
at next (/home/travis/build/WatchFriends/Web/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js:46:8)
at handleExternals (/home/travis/build/WatchFriends/Web/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js:59:7)
at ExternalModuleFactoryPlugin.<anonymous> (/home/travis/build/WatchFriends/Web/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js:79:5)
at /home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/NormalModuleFactory.js:207:3
at /home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/tapable/lib/Tapable.js:168:11
at NormalModuleFactory.<anonymous> (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/NormalModuleReplacementPlugin.js:26:11)
at NormalModuleFactory.applyPluginsAsyncWaterfall (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/tapable/lib/Tapable.js:172:13)
at NormalModuleFactory.create (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/NormalModuleFactory.js:191:8)
at Compilation.process [as _addModuleChain] (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/Compilation.js:359:16)
at Compilation.process [as addEntry] (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/Compilation.js:435:7)
at SingleEntryPlugin.<anonymous> (/home/travis/build/WatchFriends/Web/node_modules/webpack/lib/SingleEntryPlugin.js:22:15)
at Compiler.applyPluginsParallel (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/tapable/lib/Tapable.js:193:14)
at Compiler.<anonymous> (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/Compiler.js:463:8)
at Compiler.applyPluginsAsyncSeries (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/tapable/lib/Tapable.js:95:46)
at Compiler.compile (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/Compiler.js:456:7)
at Compiler.runAsChild (/home/travis/build/WatchFriends/Web/node_modules/angular-cli/node_modules/webpack/lib/Compiler.js:265:7)
at /home/travis/build/WatchFriends/Web/node_modules/@ngtools/webpack/src/resource_loader.js:38:27
at WebpackResourceLoader._compile (/home/travis/build/WatchFriends/Web/node_modules/@ngtools/webpack/src/resource_loader.js:37:16)
at WebpackResourceLoader.get (/home/travis/build/WatchFriends/Web/node_modules/@ngtools/webpack/src/resource_loader.js:91:21)
at DirectiveNormalizer._fetch (/home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:13896:45)
at DirectiveNormalizer.normalizeTemplateAsync (/home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:13930:23)
at DirectiveNormalizer.normalizeTemplate (/home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:13910:46)
at CompileMetadataResolver._loadDirectiveMetadata (/home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:14471:60)
at /home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:14712:89
at /home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:12714:153
at Array.map (native)
at /home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:12714:122
at Array.map (native)
at loadNgModuleDirectives (/home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:12714:46)
at OfflineCompiler.compileModules (/home/travis/build/WatchFriends/Web/node_modules/@angular/compiler/bundles/compiler.umd.js:12776:18)
at CodeGenerator.codegen (/home/travis/build/WatchFriends/Web/node_modules/@angular/compiler-cli/src/codegen.js:58:30)
at /home/travis/build/WatchFriends/Web/node_modules/@ngtools/webpack/src/plugin.js:210:73
at process._tickCallback (internal/process/next_tick.js:103:7)
npm ERR! Linux 4.8.12-040812-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.9.4/bin/node" "/home/travis/.nvm/versions/node/v6.9.4/bin/npm" "run" "build"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! watchfriends@0.0.0 build: `ng build --prod --aot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the watchfriends@0.0.0 build script 'ng build --prod --aot'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the watchfriends package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng build --prod --aot
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs watchfriends
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls watchfriends
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/travis/build/WatchFriends/Web/npm-debug.log
The command "npm run build" exited with 1.
$ npm run build
> watchfriends@0.0.0 build /home/travis/build/WatchFriends/Web
> ng build --prod --aot
Hash: 08028a92a9c94d332ea0
Time: 44394ms
chunk {0} main.08f754963973d41c15f3.bundle.js, main.08f754963973d41c15f3.bundle.map (main) 474 kB {2} [initial] [rendered]
chunk {1} styles.b2328beb0372c051d06d.bundle.js, styles.ce2ed940a7502d1fe8131150c746ad13.bundle.css, styles.b2328beb0372c051d06d.bundle.map, styles.b2328beb0372c051d06d.bundle.map (styles) 69 bytes {3} [initial] [rendered]
chunk {2} vendor.7279ee546f6057d812c4.bundle.js, vendor.7279ee546f6057d812c4.bundle.map (vendor) 1.91 MB [initial] [rendered]
chunk {3} inline.d41d8cd98f00b204e980.bundle.js, inline.d41d8cd98f00b204e980.bundle.map (inline) 0 bytes [entry] [rendered]
The command "npm run build" exited with 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment