forked from SonarSource/sonarqube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Brandhof
committed
Feb 10, 2016
1 parent
a1be1bb
commit e851411
Showing
44 changed files
with
53,503 additions
and
86 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Definition of QA pipeline at SonarSource | ||
# | ||
# Possible values for SLAVE_TYPE: "performance" (for perf tests) and "gva" (for linux machines connected to DB services) | ||
|
||
|
||
RUN_ACTIVITY: | ||
- run-db-unit-tests-mysql56 | ||
- run-db-unit-tests-mssql2012 | ||
- run-db-unit-tests-mssql2014 | ||
- run-db-unit-tests-oracle11g | ||
- run-db-unit-tests-oracle12c | ||
- run-db-unit-tests-postgresql93 | ||
|
||
exclude: | ||
- RUN_ACTIVITY: run-db-unit-tests-mysql56 | ||
SLAVE_TYPE: performance | ||
- RUN_ACTIVITY: run-db-unit-tests-mssql2012 | ||
SLAVE_TYPE: performance | ||
- RUN_ACTIVITY: run-db-unit-tests-mssql2014 | ||
SLAVE_TYPE: performance | ||
- RUN_ACTIVITY: run-db-unit-tests-oracle11g | ||
SLAVE_TYPE: performance | ||
- RUN_ACTIVITY: run-db-unit-tests-oracle12c | ||
SLAVE_TYPE: performance | ||
- RUN_ACTIVITY: run-db-unit-tests-postgresql93 | ||
SLAVE_TYPE: performance | ||
- RUN_ACTIVITY: run-perf-tests | ||
SLAVE_TYPE: gva |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
# | ||
|
||
set -euo pipefail | ||
|
||
case "$RUN_ACTIVITY" in | ||
|
||
run-db-unit-tests-*) | ||
DB_ENGINE=`echo $RUN_ACTIVITY | sed "s/run-db-unit-tests-//g"` | ||
|
||
./run-db-unit-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties" | ||
;; | ||
|
||
run-db-integration-tests-*) | ||
DB_ENGINE=`echo $RUN_ACTIVITY | sed "s/run-db-integration-tests-//g" | cut -d \- -f 1` | ||
CATEGORY=`echo $RUN_ACTIVITY | sed "s/run-db-integration-tests-//g" | cut -d \- -f 2` | ||
|
||
echo "./run-db-integration-tests.sh $DB_ENGINE $CATEGORY $SLAVE_TYPE" | ||
;; | ||
|
||
run-upgrade-tests-*) | ||
DB_ENGINE=`echo $RUN_ACTIVITY | sed "s/run-upgrade-tests-//g"` | ||
|
||
echo "./run-upgrade-tests.sh $DB_ENGINE $SLAVE_TYPE" | ||
;; | ||
|
||
run-perf-tests) | ||
./run-perf-tests.sh | ||
;; | ||
|
||
*) | ||
echo "unknown RUN_ACTIVITY = $RUN_ACTIVITY" | ||
exit 1 | ||
;; | ||
|
||
esac |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* SonarQube | ||
* Copyright (C) 2009-2016 SonarSource SA | ||
* mailto:contact AT sonarsource DOT com | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package it; | ||
|
||
import it.serverSystem.HttpsTest; | ||
import it.serverSystem.RestartTest; | ||
import it.serverSystem.ServerSystemRestartingOrchestrator; | ||
import it.settings.SettingsTestRestartingOrchestrator; | ||
import it.updateCenter.UpdateCenterTest; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Suite; | ||
|
||
/** | ||
* This suite is reserved to the tests that start their own instance of Orchestrator. | ||
* Indeed multiple instances of Orchestrator can't be started in parallel, so this | ||
* suite does not declare a shared Orchestrator. | ||
*/ | ||
@RunWith(Suite.class) | ||
@Suite.SuiteClasses({ | ||
ServerSystemRestartingOrchestrator.class, | ||
RestartTest.class, | ||
HttpsTest.class, | ||
SettingsTestRestartingOrchestrator.class, | ||
// update center | ||
UpdateCenterTest.class | ||
|
||
}) | ||
public class Category5Suite { | ||
|
||
} |
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
Oops, something went wrong.