-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
25 lines (24 loc) · 1.09 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
# see https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-codebuild-devicefarm.html
version: 0.2
phases:
install:
runtime-versions:
nodejs: 14
commands:
- echo "Entered the install phase - jq already installed ..."
#- apt-get update -y
#- apt-get install -y jq
pre_build:
commands:
# see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html
- echo "HOME is $HOME, CODEBUILD_SRC_DIR is $CODEBUILD_SRC_DIR, CODEBUILD_SRC_DIR_HELPERS is $CODEBUILD_SRC_DIR_HELPERS, pwd is $(pwd), region is $AWS_REGION"
- echo "//registry.npmjs.org/:_authToken=$(echo "$NPM_TOKEN" | jq -e -r .token)" > "$HOME/.npmrc"
- mkdir -p "$HOME/.aws"; /bin/echo -e "[default]\nregion = ${AWS_REGION}\noutput = json\ncredential_source = Ec2InstanceMetadata\n" | tee "$HOME/.aws/config"
- npm ci
- git config --global user.email frickjack
- git config --global user.name frickjack
- pip install yq --upgrade
build:
commands:
- bash AWS/little.sh testsuite
- npm audit --audit-level=high