From 05d70a9895a53122105890b7bfdc4933e5588bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Mon, 21 Oct 2019 09:46:54 +0200 Subject: [PATCH] chore: add --frozen-lockfile to CI/CD 'yarn install' invocations --- .travis.yml | 2 +- buildspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b2695cbdde..34f89e7165 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ script: # Building the Docker image - docker build --pull --build-arg BUILD_TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg COMMIT_ID="${TRAVIS_COMMIT}" -t "jsii/superchain:nightly" ./superchain # Building jsii itself within the Docker image - - docker run --rm -it --network=host -v ${PWD}:${PWD} -w ${PWD} jsii/superchain:nightly bash -c "yarn install && yarn build && yarn test" + - docker run --rm -it --network=host -v ${PWD}:${PWD} -w ${PWD} jsii/superchain:nightly bash -c "yarn install --frozen-lockfile && yarn build && yarn test" # Make sure the build did not change the source tree - git update-index --refresh - git diff-index --exit-code --stat HEAD diff --git a/buildspec.yaml b/buildspec.yaml index 42f687373a..6eb3988768 100644 --- a/buildspec.yaml +++ b/buildspec.yaml @@ -5,7 +5,7 @@ phases: commands: # Temporarily - install yarn if it's not there already - yarn --version || npm install --global yarn - - yarn install + - yarn install --frozen-lockfile pre_build: commands: - yarn fetch-dotnet-snk