only use nvm on mac
This commit is contained in:
parent
93e4f29ee4
commit
bd22644b05
|
@ -22,9 +22,9 @@ env:
|
||||||
- LD_LIBRARY_PATH: /usr/local/lib
|
- LD_LIBRARY_PATH: /usr/local/lib
|
||||||
- CLIPPY: n
|
- CLIPPY: n
|
||||||
install:
|
install:
|
||||||
- source $HOME/.nvm/nvm.sh
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then source $HOME/.nvm/nvm.sh; fi
|
||||||
- nvm install 10
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then nvm install 10; fi
|
||||||
- nvm use 10
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then nvm use 10; fi
|
||||||
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
script: ./ci/travis.sh
|
script: ./ci/travis.sh
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
@ -51,8 +51,8 @@ build_and_test() {
|
||||||
if [ -n "${TRAVIS}" ]; then
|
if [ -n "${TRAVIS}" ]; then
|
||||||
# wasm tests
|
# wasm tests
|
||||||
touch tests/wasm.rs # ensure rebuild happens so TZ / NOW take effect
|
touch tests/wasm.rs # ensure rebuild happens so TZ / NOW take effect
|
||||||
#TZ=ACST-9:30 NOW=$(date +%s) wasm-pack test --node
|
TZ=ACST-9:30 NOW=$(date +%s) wasm-pack test --node
|
||||||
#touch tests/wasm.rs
|
touch tests/wasm.rs
|
||||||
TZ=EST4 NOW=$(date +%s) wasm-pack test --node
|
TZ=EST4 NOW=$(date +%s) wasm-pack test --node
|
||||||
touch tests/wasm.rs
|
touch tests/wasm.rs
|
||||||
TZ=UTC0 NOW=$(date +%s) wasm-pack test --node
|
TZ=UTC0 NOW=$(date +%s) wasm-pack test --node
|
||||||
|
|
Loading…
Reference in New Issue