File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 8
8
global :
9
9
- CXX=g++-4.8
10
10
before_install :
11
- # Yarn defaults to an old version, make sure we
12
- # get an up to date version
13
- -
npm install -g [email protected]
11
+ # Yarn defaults to an old version, make sure we get an up to date version
12
+ -
npm install -g [email protected]
14
13
- ' [ "${NPM_TOKEN+x}" ] && echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > $HOME/.npmrc || echo "Skipping .npmrc creation";'
15
-
14
+ install :
15
+ # --frozen-lockfile doesn’t generate a yarn.lock lockfile and should fail if an update is needed.
16
+ # This will make sure that yarn.lock file in the PR is consistent with package.json.
17
+ #
18
+ # Due to a yarn issue (https://github.com/yarnpkg/yarn/issues/5840), --frozen-lockfile doesn't
19
+ # actually fail if an update is required, but integrity check from tools/pretest.js will catch
20
+ # the issue, so it still works as expected.
21
+ - yarn install --frozen-lockfile
16
22
before_script :
17
23
- cp config/ci.config.json config/project.json
18
24
- yarn build
You can’t perform that action at this time.
0 commit comments