Parallel commands

selenium
nodejs

#1

Hi!

Its posible to do 3 parallel shell commands?


#2

In a single run step or one container? Yes:

- run: |
     command1 &
     command2 &
     command3

or

- run:
    command: command1
    background: true
- run:
    command: command2
    background: true
- run:
    command: command3

#3

error test command go to null?

I mean how to do parallel testing command.

Example:

First and second command

DISPLAY=:99 TIMEOUT=240000 only=upload-data npm run -s ctest-full

DISPLAY=:99 TIMEOUT=240000 only=v3 game=cascade-manor-v3 npm run -s ctest-full


#4

Are you trying to run one on a given container and the other command in a different container?

Either workflows or bash if statements.


#5

In one container.


#6

Could you provide example how to do it? With only one command to run test build fine, but if we add after first test command second, build failed… (


#7

One first command running success and second died… How to fix it?


#8

Can you link me to what you’re seeing?


#9

https://circleci.com/gh/dmapper/idg/982

only one test command

https://circleci.com/gh/dmapper/idg/974

other run test command and error…


#10

You should define DISPLAY=:99 and TIMEOUT=240000 in an environment section at the top,.

Can you try splitting up your tests like this?

      - run:
          name: Run Xvfb
          command: Xvfb :99 -ac 2>&1
          background: true
      - run:
          name: Run Xvfb
          command: |
            wget https://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar
            java -jar selenium-server-standalone-3.0.1.jar 2>&1
          background: true
      - run: sleep 3
      - run: only=v3 game=new-recruit-v3 npm run -s ctest-full
      - run: only=v3 game=cascade-manor-v3 npm run -s ctest-full

(This snippet assumes DISPLAY and TIMEOUT are defined at the top of the config)


#11

https://circleci.com/gh/dmapper/idg/991

QUEUED and not run


#12

It is running right now


#13

Build died (

https://circleci.com/gh/dmapper/idg/993

Maybe i am something miss in config?


#14

problem is actual, one run tests command work, second run tests command no work…


#15

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.