Skip to content

Commit

Permalink
[ci] define matrix axes in code (#25360)
Browse files Browse the repository at this point in the history
* [ci] define matrix axes in code

* [ci] add null exclude rule

* [ci] make script executable

* [ci] execute sub-scripts

* [ci] simplify job variable name

(cherry picked from commit 399c50c)
  • Loading branch information
Spencer committed Nov 12, 2018
1 parent 35daed5 commit 5ceafd9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ci/jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
JOB:
- selenium
- intake
- x-pack

# `~` is yaml for `null`
exclude: ~
22 changes: 22 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -e

# move to Kibana root
cd "$(dirname "$0")/.."

case "$JOB" in
"selenium")
./test/scripts/jenkins_selenium.sh
;;
"intake")
./test/scripts/jenkins_unit.sh
;;
"x-pack")
./test/scripts/jenkins_xpack.sh
;;
*)
echo "JOB '$JOB' is not implemented."
exit 1
;;
esac

0 comments on commit 5ceafd9

Please sign in to comment.