Skip to content
Snippets Groups Projects
Commit efcdafd4 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Have bamboo test plans as files

Atlassian bamboo allows to define test plans in
files since version 6. The test plans are based on
rather simple Java files.
The patch delivers build information of
default core pre-merge plan.
Changes of bamboo test configuration for these plans
are now coordinated via casual patch requests and can
be reviewed just as all other code.
This adds full transparency on what exactly the core
test environment does and can be used by others as
reference for local execution and extension test plan
boilerplates.
Upload to bamboo.typo3.com to update test plans can
be done by a bamboo administrator.

Change-Id: I756cb65eba3a58e9edf0995aa9f1f2d4f96f7926
Resolves: #81589
Releases: master, 8.7, 7.6
Reviewed-on: https://review.typo3.org/53225


Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 05a10ff6
Branches
Tags
No related merge requests found
username=admin
password=aPassword
.credentials
### Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
### Java
# Compiled class file
*.class
# Log file
*.log
# Package Files #
*.jar
### Never add private credentials file to upstream
.credentials
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
### Idea
.idea/
*.iml
### Eclipse
.classpath
.project
.settings/
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-parent</artifactId>
<version>6.0.2</version>
<relativePath/>
</parent>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>typo3-core</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs-api</artifactId>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>bamboo-specs</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<!-- run 'mvn test' to perform offline validation of the plan -->
<!-- run 'mvn -Ppublish-specs' to upload the plan to your Bamboo server -->
</project>
This diff is collapsed.
package core;
import com.atlassian.bamboo.specs.api.builders.plan.Plan;
import com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException;
import com.atlassian.bamboo.specs.api.util.EntityPropertiesBuilders;
import org.junit.Test;
public class PreMergeSpecTest {
@Test
public void checkYourPlanOffline() throws PropertiesValidationException {
Plan plan = new PreMergeSpec().createPlan();
EntityPropertiesBuilders.build(plan);
}
}
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