Skip to content

Commit

Permalink
Merge pull request #338 from chronotope/wasm-pack-test
Browse files Browse the repository at this point in the history
Wasm pack test
  • Loading branch information
quodlibetor committed Sep 4, 2019
2 parents c045750 + be93229 commit bbfcfad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chrono"
version = "0.4.8"
version = "0.4.9"
authors = [
"Kang Seonghoon <public+rust@mearie.org>",
"Brandon W Maister <quodlibetor@gmail.com>",
Expand Down
10 changes: 4 additions & 6 deletions ci/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,14 @@ build_and_test_nonwasm() {
}

build_and_test_wasm() {
channel build --features wasmbind -v

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 -- --features wasmbind
touch tests/wasm.rs
TZ=EST4 NOW=$(date +%s) wasm-pack test --node
TZ=EST4 NOW=$(date +%s) wasm-pack test --node -- --features wasmbind
touch tests/wasm.rs
TZ=UTC0 NOW=$(date +%s) wasm-pack test --node
TZ=UTC0 NOW=$(date +%s) wasm-pack test --node -- --features wasmbind
touch tests/wasm.rs
TZ=Asia/Katmandu NOW=$(date +%s) wasm-pack test --node
TZ=Asia/Katmandu NOW=$(date +%s) wasm-pack test --node -- --features wasmbind
}

build_only() {
Expand Down
2 changes: 0 additions & 2 deletions tests/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ mod test {
use self::chrono::prelude::*;
use self::wasm_bindgen_test::*;

use std::env;

#[wasm_bindgen_test]
fn now() {
let utc: DateTime<Utc> = Utc::now();
Expand Down

0 comments on commit bbfcfad

Please sign in to comment.