Created
February 3, 2018 13:15
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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