Skip to content

Commit 89e8a45

Browse files
ohanaralexcrichton
authored andcommitted
use npm ci in ci (#481)
1 parent 16cbca7 commit 89e8a45

File tree

3 files changed

+6855
-6
lines changed

3 files changed

+6855
-6
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build: false
1919

2020
test_script:
2121
- rustup target add wasm32-unknown-unknown
22-
- npm install # dirties repo, see .travis.yml
22+
- npm ci
2323
- cargo test
2424
- cargo build --release -p wasm-bindgen-cli
2525

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ matrix:
3434
env: JOB=test-bindgen
3535
before_install: *INSTALL_NODE_VIA_NVM
3636
install:
37-
# dirties git repository, there doesn't seem to be a way to resolve this other than
38-
# to run `npm install` twice or by using `npm ci` (which is currently broken)
39-
- npm install
37+
- npm ci
4038
script:
4139
- cargo test --release
4240
# Check JS output from all tests against eslint
@@ -65,7 +63,7 @@ matrix:
6563
env: JOB=test-web-sys
6664
before_install: *INSTALL_NODE_VIA_NVM
6765
install:
68-
- npm install
66+
- npm ci
6967
script: cargo test --manifest-path crates/web-sys/Cargo.toml
7068
addons:
7169
firefox: latest
@@ -84,7 +82,7 @@ matrix:
8482
- rust: nightly
8583
env: JOB=test-webidl
8684
before_install: *INSTALL_NODE_VIA_NVM
87-
install: npm install
85+
install: npm ci
8886
script: cargo test --manifest-path crates/webidl/Cargo.toml
8987

9088
# Dist linux binary

0 commit comments

Comments
 (0)