mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-01 18:01:06 +00:00
commit
16bc3eb7e7
@ -19,7 +19,7 @@ build: false
|
|||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- rustup target add wasm32-unknown-unknown
|
- rustup target add wasm32-unknown-unknown
|
||||||
- npm install
|
- npm install # dirties repo, see .travis.yml
|
||||||
- cargo test
|
- cargo test
|
||||||
- cargo build --release -p wasm-bindgen-cli
|
- cargo build --release -p wasm-bindgen-cli
|
||||||
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,5 +3,6 @@
|
|||||||
Cargo.lock
|
Cargo.lock
|
||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
npm-shrinkwrap.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
*.d.ts
|
*.d.ts
|
||||||
|
39
.travis.yml
39
.travis.yml
@ -10,13 +10,37 @@ matrix:
|
|||||||
|
|
||||||
# Tests pass on nightly
|
# Tests pass on nightly
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
before_install: rustup target add wasm32-unknown-unknown
|
before_install:
|
||||||
|
- rustup target add wasm32-unknown-unknown
|
||||||
|
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||||
|
- source ~/.nvm/nvm.sh
|
||||||
|
- nvm install v10.5
|
||||||
|
install:
|
||||||
|
# dirties git repository, there doesn't seem to be a way to resolve this other than
|
||||||
|
# to run `npm install` twice or by using `npm ci` (which is currently broken)
|
||||||
|
- npm install
|
||||||
script:
|
script:
|
||||||
- cargo test
|
- cargo test
|
||||||
# Check JS output from all tests against eslint
|
# Check JS output from all tests against eslint
|
||||||
- ./node_modules/.bin/eslint ./target/generated-tests/*/out*.js
|
- ./node_modules/.bin/eslint ./target/generated-tests/*/out*.js
|
||||||
env: RUST_BACKTRACE=1
|
env: RUST_BACKTRACE=1
|
||||||
|
|
||||||
|
# Tests pass on nightly using yarn
|
||||||
|
- rust: nightly
|
||||||
|
before_install:
|
||||||
|
- rustup target add wasm32-unknown-unknown
|
||||||
|
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||||
|
- source ~/.nvm/nvm.sh
|
||||||
|
- nvm install v10.5
|
||||||
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
|
||||||
|
- export PATH=$HOME/.yarn/bin:$PATH
|
||||||
|
install:
|
||||||
|
- yarn install --freeze-lockfile
|
||||||
|
script:
|
||||||
|
- cargo test
|
||||||
|
# Check JS output from all tests against eslint
|
||||||
|
- ./node_modules/.bin/eslint ./target/generated-tests/*/out*.js
|
||||||
|
env: RUST_BACKTRACE=1
|
||||||
# WebIDL tests pass on nightly
|
# WebIDL tests pass on nightly
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
before_install: rustup component add rustfmt-preview --toolchain nightly
|
before_install: rustup component add rustfmt-preview --toolchain nightly
|
||||||
@ -46,7 +70,11 @@ matrix:
|
|||||||
|
|
||||||
# All examples work
|
# All examples work
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
before_install: rustup target add wasm32-unknown-unknown
|
before_install:
|
||||||
|
- rustup target add wasm32-unknown-unknown
|
||||||
|
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
||||||
|
- source ~/.nvm/nvm.sh
|
||||||
|
- nvm install v10.5
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
(cd examples/hello_world && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
(cd examples/hello_world && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
|
||||||
@ -87,13 +115,6 @@ matrix:
|
|||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
install:
|
|
||||||
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
|
||||||
- source ~/.nvm/nvm.sh
|
|
||||||
- nvm install 10
|
|
||||||
- npm install
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: never
|
on_success: never
|
||||||
|
@ -427,7 +427,6 @@ impl Project {
|
|||||||
if !Path::new("node_modules").exists() {
|
if !Path::new("node_modules").exists() {
|
||||||
panic!("\n\nfailed to find `node_modules`, have you run `npm install` yet?\n\n");
|
panic!("\n\nfailed to find `node_modules`, have you run `npm install` yet?\n\n");
|
||||||
}
|
}
|
||||||
fs::hard_link("package-lock.json", root.join("package-lock.json")).unwrap();
|
|
||||||
let cwd = env::current_dir().unwrap();
|
let cwd = env::current_dir().unwrap();
|
||||||
symlink_dir(&cwd.join("node_modules"), &root.join("node_modules")).unwrap();
|
symlink_dir(&cwd.join("node_modules"), &root.join("node_modules")).unwrap();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user