-
Notifications
You must be signed in to change notification settings - Fork 820
Expand file tree
/
Copy pathrun_gen2_migrations_e2e_tests_linux.yml
More file actions
55 lines (54 loc) · 2.21 KB
/
run_gen2_migrations_e2e_tests_linux.yml
File metadata and controls
55 lines (54 loc) · 2.21 KB
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
46
47
48
49
50
51
52
53
54
55
version: 0.2
env:
shell: bash
variables:
E2E_TEST_COVERAGE_DIR: node_v8_coverage
CI: true
CIRCLECI: true
IS_AMPLIFY_CI: true
# mock values to test artifact scanning
ENV_VAR_WITH_SECRETS: 'MOCK_ENV_VAR_FOR_SCANNING_SECRETS'
MOCK_ENV_VAR_FOR_SCANNING_SECRETS: 'abc123xyz'
# mock values for credentials below
FACEBOOK_APP_ID: 'fbAppId'
FACEBOOK_APP_SECRET: 'fbAppSecret'
GOOGLE_APP_ID: 'gglAppID'
GOOGLE_APP_SECRET: 'gglAppSecret'
AMAZON_APP_ID: 'amaznAppID'
AMAZON_APP_SECRET: 'amaznAppID'
APPLE_APP_ID: 'com.fake.app'
APPLE_TEAM_ID: '2QLEWNDK6K'
APPLE_KEY_ID: '2QLZXKYJ8J'
# mock value, Cognito validates the private key, this is an invalidated key.
APPLE_PRIVATE_KEY_2: '----BEGIN PRIVATE KEY-----MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgIltgNsTgTfSzUadYiCS0VYtDDMFln/J8i1yJsSIw5g+gCgYIKoZIzj0DAQehRANCAASI8E0L/DhR/mIfTT07v3VwQu6q8I76lgn7kFhT0HvWoLuHKGQFcFkXXCgztgBrprzd419mUChAnKE6y89bWcNw----END PRIVATE KEY----'
phases:
build:
commands:
# you can provide a codebuild source version to use old cache and skip all other jobs :)
- export NODE_OPTIONS=--max-old-space-size=4096
- export AMPLIFY_DIR=$CODEBUILD_SRC_DIR/out
- export AMPLIFY_PATH=$CODEBUILD_SRC_DIR/out/amplify-pkg-linux-x64
- echo $AMPLIFY_DIR
- echo $AMPLIFY_PATH
- npm install -g ts-node
- source ./shared-scripts.sh && _runGen2MigrationE2ETestsLinux
post_build:
commands:
- source ./shared-scripts.sh && _convertCoverage # && _uploadCoverageLinux (disabled while troubleshooting E2E test failures during initial CodeBuild setup)
- source ./shared-scripts.sh && _scanArtifacts
- source ./shared-scripts.sh && _uploadReportsToS3 $CODEBUILD_SOURCE_VERSION $CODEBUILD_BATCH_BUILD_IDENTIFIER amplify-migration-e2e
artifacts:
files:
- '$E2E_TEST_COVERAGE_DIR/*'
- amplify-migration-e2e-reports/*
base-directory: packages/amplify-migration-e2e/
reports:
e2e-reports:
files:
- '*.xml'
file-format: 'JUNITXML'
base-directory: '$CODEBUILD_SRC_DIR/packages/amplify-migration-e2e/junit'
e2e-coverage-report:
files:
- 'packages/amplify-migration-e2e/coverage/clover.xml'
file-format: CLOVERXML