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.

Set concurrency option to 1 when $TRAVIS = true

See original GitHub issue

It seems like Travis CI doesn’t handle multiple processes. I’m currently using this npm script to run tests: "test": "[ \"$TRAVIS\" ] && c=1 || c=5; ava -c $c"

But it doesn’t work on Windows. I’m looking for a cross-platform conditional statement solution, but I’m wondering if this condition should be made on AVA itself.

Reference: https://github.com/diegohaz/generator-rest/issues/11

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
darul75commented, May 8, 2017

I confim having ava running tests with Travis in serial mode can fix that kind of issue

exited due to SIGKILL

Resolved with

ava --serial
0reactions
Dakuancommented, Feb 11, 2017

I’m also having this issue on CircleCI…

my node_modules folder is 331mb, so you wouldn’t need very many of them to trip up the server!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customizing the Build - Travis CI Docs
You can set the maximum number of concurrent jobs in the settings pane for each repository. Settings -> Limit concurrent builds. Or using...
Read more >
Feature Request: Limit concurrent builds by branch / tag / PR
Generally speaking, limiting the concurrency across the builds is a repository-level concern, and not a build-level (and therefore commit-level) concern.
Read more >
Conan local cache: concurrency, Continuous Integration ...
Build concurrent jobs, parallel builds in Continuous Integration or locally, by just setting the variable before launching Conan commands.
Read more >
A Concurrency Cost Hierarchy - Performance Matters
Concurrent operations can be grouped relatively neatly into categories based ... so we will use a real-world-if-you-squint running example ...
Read more >
How to run Travis CI parallel jobs with build matrix feature fast
Travis CI allows you to run multiple concurrent jobs as part of the ... of language and environment dependent set of configuration options....
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