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