Skip to content

Instantly share code, notes, and snippets.

@jaffamonkey
Created February 3, 2018 13:15
Show Gist options
  • Save jaffamonkey/63ed557427ab32b4000f1c22704c26ef to your computer and use it in GitHub Desktop.
Save jaffamonkey/63ed557427ab32b4000f1c22704c26ef to your computer and use it in GitHub Desktop.
TravisCI Matrix enables you to run two or more jobs concurrently. For example, it is prudent to separate out load tests and UI tests. The following travis.yml extract illustrates this.
env:
matrix:
- TESTTYPE=cucumber
- TESTTYPE=jmeter
- if [[ "$TESTTYPE" == "cucumber" ]]; then docker exec -ti par_beta_web bash -c "cd tests && /usr/local/n/versions/node/7.2.1/bin/npm run test:build"; fi


- if [[ "$TESTTYPE" == "jmeter" ]]; then docker exec -ti par_beta_web bash -c "cd tests/jmeter && ./apache-jmeter-3.3/bin/jmeter -n -t load-test-plan-travis.jmx -l ../reports/jmeterreport.jtl -e -o ../reports/dashboard"; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment