forked from aws-samples/serverless-test-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestspec.yml
30 lines (28 loc) · 851 Bytes
/
testspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
version: 0.2
phases:
install:
runtime-versions:
java: corretto11
commands:
- cd ./java-appsync-sam
pre_build:
commands:
- yum install java-17-amazon-corretto-devel -y
- alternatives --set java /usr/lib/jvm/java-17-amazon-corretto.x86_64/bin/java
- export JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto.x86_64
build:
commands:
- echo Build started on `date`
- mvn test -Dtest=IntegrationTest
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- ./java-appsync-sam/target/java-appsync-sam-1.0-SNAPSHOT.jar
- ./java-appsync-sam/appspec.yml
- ./java-appsync-sam/application.yaml
- ./java-appsync-sam/cognito.yaml
discard-paths: yes