Skip to content

add codebuild buildspec files #666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions buildspecs/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 0.2

phases:
build:
commands:
- mvn clean install -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
6 changes: 6 additions & 0 deletions buildspecs/integ-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 0.2

phases:
build:
commands:
- mvn clean verify -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -pl !:dynamodbmapper-v1 -Dfailsafe.rerunFailingTestsCount=1 -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@

import static org.junit.Assert.assertNotNull;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import software.amazon.awssdk.core.exception.SdkServiceException;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.devicefarm.model.CreateProjectRequest;
import software.amazon.awssdk.services.devicefarm.model.CreateProjectResponse;
import software.amazon.awssdk.services.devicefarm.model.DeleteProjectRequest;
import software.amazon.awssdk.services.devicefarm.model.ListDevicePoolsRequest;
import software.amazon.awssdk.services.devicefarm.model.Project;
import software.amazon.awssdk.testutils.service.AwsTestBase;
Expand All @@ -36,6 +38,8 @@ public class DeviceFarmIntegrationTest extends AwsTestBase {
+ System.currentTimeMillis();
private static DeviceFarmClient client;

private static String projectArn;

@BeforeClass
public static void setup() throws Exception {
setUpCredentials();
Expand All @@ -45,6 +49,11 @@ public static void setup() throws Exception {
.build();
}

@AfterClass
public static void teardown() {
client.deleteProject(DeleteProjectRequest.builder().arn(projectArn).build());
}

@Test
public void testCreateProject() {
CreateProjectResponse result = client
Expand All @@ -53,7 +62,8 @@ public void testCreateProject() {
.build());
final Project project = result.project();
assertNotNull(project);
assertNotNull(project.arn());
projectArn = project.arn();
assertNotNull(projectArn);
}

@Test(expected = SdkServiceException.class)
Expand Down