-
Notifications
You must be signed in to change notification settings - Fork 1
/
testspec.yml
30 lines (25 loc) · 932 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
version: 0.2
env:
variables:
SELENIUM_REMOTE_HOST: CODEPIPELINE
TARGET_URL: CODEPIPELINE
REPORT_LOCATION: CODEPIPELINE
phases:
install:
commands:
- apt-get update && apt-get install -y software-properties-common=0.92.37.8
- add-apt-repository ppa:openjdk-r/ppa
- apt-get update && apt-get -y install openjdk-8-jdk=8u162-b12-1~14.04
pre_build:
commands:
- npm install
build:
commands:
- npm run test:features:capabilities --silent -- --host $SELENIUM_REMOTE_HOST > caps.json
- npm run test:features -- --host $SELENIUM_REMOTE_HOST -b $TARGET_URL --capabilities caps.json
- npm run test:features:report:create
post_build:
commands:
- DATE=`date +%Y/%m/%d/%H:%M`
- aws s3 cp allure-report s3://$REPORT_LOCATION/latest --recursive --acl public-read
- aws s3 cp allure-report s3://$REPORT_LOCATION/$DATE --recursive --acl public-read