I have tried various configurations inside stages
but I am unable to make travis execute jobs in parallel inside stages.
I have gone through these links:
- https://docs.travis-ci.com/user/build-stages/
-
https://docs.travis-ci.com/user/build-stages/using-yaml-aliases/ (test staging part)
and I have still not gotten it(stageFVT
) to work in parallel
This one snippet of the travis yaml
dist: trusty
language: java
sudo: true
group: bluezone
jdk: openjdk11
services:
- docker
branches:
only:
- develop
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
apt: true
directories:
- $HOME/.gradle/caches
- $HOME/.gradle/wrapper
- $HOME/.cache/pip
install:
# Install Ansible.
- sudo apt-get update
- sudo apt-get install python3
- sudo -H pip install --upgrade pip
- sudo -H pip install ansible
- sudo apt-get install sshpass
jobs:
include:
- stage: "Build and Deploy"
script: ./playbooks/dev/deploy_image.sh
- &fvt
stage: test
script: ./qa/src/test/resources/test1.sh
- <<: *fvt
script: ./qa/src/test/resources/test2.sh
and this is another snippet (The section above jobs.include is not pasted as it is same as the 1st snippet):
jobs:
include:
- stage: "Build and Deploy"
script:
- ./playbooks/dev/deploy_image.sh
- stage: "FVT"
name: "A"
script:
- ./qa/src/test/resources/test1.sh
- stage: "FVT"
name: "B"
script:
- ./qa/src/test/resources/test2.sh