-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuildspec.yml
45 lines (39 loc) · 1.13 KB
/
buildspec.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: 0.2
batch:
fast-fail: false
build-fanout:
parallelism: 3
ignore-failure: false
phases:
install:
commands:
- npm install jest-junit --save-dev
pre_build:
commands:
- echo 'prebuild'
build:
commands:
- echo "Running codebuild-tests-run command using CODEBUILD_CURRENT_SHARD_FILES"
- codebuild-tests-run --test-command 'npx jest --runInBand --coverage --testPathPattern=$(echo "$CODEBUILD_CURRENT_SHARD_FILES" | tr "\n" " ")' --files-search "codebuild-glob-search '**/_tests_/calculator/**/*.test.js'" --sharding-strategy 'equal-distribution'
post_build:
commands:
- codebuild-glob-search '**/*.xml'
- echo "Running post-build steps..."
- echo "Build completed on `date`"
reports:
test-reports-3-with-fo:
files:
- "**/*"
base-directory: 'test-reports'
file-format: JunitXml
code-cov-reports-3-with-fo:
files:
- "**/*"
base-directory: 'coverage'
file-format: CLOVERXML
artifacts:
files:
- 'test-reports/**/*'
- 'coverage/**/*'
name: build-reports-$(date +%Y-%m-%d)
s3-prefix: reports-test-cov-w-fo