Unverified Commit 64b082be authored by totten's avatar totten Committed by GitHub
Browse files

Merge pull request #4 from seamuslee001/jenkins_jobs_update

Update Saved copies of current Jenkins Jobs
parents 4d7c5a9e b56adf5e
......@@ -76,6 +76,6 @@ $GUARD popd
$GUARD civibuild install "$BLDNAME"
## Run the tests
echo civi-test-run -b "$BLDNAME" -j "$JUNITDIR" phpunit-e2e
$GUARD civi-test-run -b "$BLDNAME" -j "$JUNITDIR" phpunit-e2e
echo civi-test-run -b "$BLDNAME" -j "$JUNITDIR" upgrade phpunit-e2e phpunit-backdrop
$GUARD civi-test-run -b "$BLDNAME" -j "$JUNITDIR" upgrade phpunit-e2e phpunit-backdrop
exit $?
#!/bin/bash
set -ex
BKPROF="edge"
if [ -e $HOME/.profile ]; then . $HOME/.profile; fi
case "$BKPROF" in min|max|dfl|edge) eval $(use-bknix "$BKPROF") ;; esac
if [ -z "$BKITBLD" ]; then echo "Invalid BKPROF"; exit 1; fi
## Job Name: CiviCRM-Core-Matrix
## Job Description: Periodically run the unit tests on all major
## major branches of civicrm-core.git
## Job GitHub Project URL: https://github.com/civicrm/civicrm-core
## Job Source Code Management: None
## Job Triggers: Scheduled
## Job xUnit Files: WORKSPACE/junit/*.xml
## Useful vars: $CIVIVER (e.g. "4.5", "4.6", "master")
## Pre-requisite: Install civicrm-buildkit; configure amp
## Pre-requisite: Configure /etc/hosts and Apache with "build-1.l", "build-2.l", ..., "build-6.l"
BLDNAME="build-$EXECUTOR_NUMBER"
EXITCODE=0
## Reset (cleanup after previous tests)
[ -d "$WORKSPACE/junit" ] && rm -rf "$WORKSPACE/junit"
[ -d "$WORKSPACE/civibuild-html" ] && rm -rf "$WORKSPACE/civibuild-html"
if [ -d "$BKITBLD/$BLDNAME" ]; then
echo y | civibuild destroy "$BLDNAME"
fi
mkdir "$WORKSPACE/junit"
mkdir "$WORKSPACE/civibuild-html"
## Download application (with civibuild)
civibuild download "$BLDNAME" \
--civi-ver "$CIVIVER" \
--type "drupal-clean"
## Install application (with civibuild)
civibuild install "$BLDNAME" \
--admin-pass "n0ts3cr3t"
## Report details about this build of the application
civibuild show "$BLDNAME" \
--html "$WORKSPACE/civibuild-html" \
--last-scan "$WORKSPACE/last-scan.json" \
--new-scan "$WORKSPACE/new-scan.json"
cp "$WORKSPACE/new-scan.json" "$WORKSPACE/last-scan.json"
civi-test-run -b "$BLDNAME" -j "$WORKSPACE/junit" all
exit $?
......@@ -46,7 +46,11 @@ cp "$WORKSPACE/new-scan.json" "$WORKSPACE/last-scan.json"
## Detect & execute tests
pushd "$BKITBLD/$BLDNAME/web/sites/all/modules/civicrm"
SUITES="phpunit-crm phpunit-api phpunit-civi upgrade"
SUITES="phpunit-crm phpunit-api3 phpunit-civi upgrade"
if [ -f "tests/phpunit/api/v4/AllTests.php" ]; then
SUITES="$SUITES phpunit-api4"
fi
if [ -f "tests/phpunit/E2E/AllTests.php" ]; then
SUITES="$SUITES phpunit-e2e"
......
......@@ -67,6 +67,7 @@ $GUARD popd
$GUARD civibuild install "$BLDNAME"
## Run the tests
civi-test-run -b "$BLDNAME" -j "$JUNITDIR" \
--exclude-group ornery \
karma upgrade phpunit-e2e phpunit-civi phpunit-crm phpunit-api
#civi-test-run -b "$BLDNAME" -j "$JUNITDIR" \
# --exclude-group ornery \
# karma upgrade phpunit-e2e phpunit-civi phpunit-crm phpunit-api
civi-test-run -b "$BLDNAME" -j "$JUNITDIR" --exclude-group ornery all
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment