32 Commits

Author SHA1 Message Date
Rob Young
6b600e83e8
Allow manual-non-exhaustive (#458)
It is needed as the non_exhaustive attribute is not available on 1.13.0.

This should fix the broken linting.
2020-07-24 12:21:12 -04:00
Brandon W Maister
b6d7bac99a Fix wasm testing
wasm-bindgen-test and wasm-bindgen need to be different versions (0.3 and 0.2,
respectively), otherwise no tests are found([1], [2]);

This also fixes the test to and ci runner to just test in the current env/tz,
thereby requiring that js_sys returns the same timezone as the host system
thinks it is, but not otherwise trying to set the TZ.

[1]: https://users.rust-lang.org/t/wasm-bindgen-test-and-no-tests-to-run/43444
[2]: https://github.com/rustwasm/wasm-bindgen/pull/2123
2020-07-05 16:50:58 -04:00
Brandon W Maister
c788a4495b Add a lint for cargo fmt
This also adds the cargo fmt commit to the (new) .git-ignore-revs file which
can cause it to not show up in `git blame` either with `--ignore-revs-file` or
`git config blame.ignoreRevsFile .git-ignore-revs`
2020-06-27 17:10:38 -04:00
Brandon W Maister
e0412b7813 Enable clippy lints and deny all warnings 2020-06-27 16:55:15 -04:00
Brandon W Maister
c2fe38cd84 clean up github workflows ui
This puts different kinds of tests in different job names, instead of
shoehorning them into the matrix.
2020-06-27 15:25:17 -04:00
Brandon W Maister
43db62eda3 Get rid of appveyor and travis configs 2020-06-26 12:37:57 -04:00
Brandon W Maister
2c81fa8c1a clean up clippy lints 2020-06-21 23:55:41 -04:00
Brandon W Maister
4ae60dfb84 Add github actions config 2020-06-21 23:38:45 -04:00
Brandon W Maister
d603580b10
fix ci script syntax 2020-06-05 17:54:05 -04:00
Guillaume Gomez
8aaa4ec824 Add README doc checks 2020-06-05 22:43:38 +02:00
Brandon W Maister
918cff1f72 Remove some pwds from the CI script
They just add noise, now.
2019-09-20 13:49:30 -04:00
Brandon W Maister
6499c5b1c9 Using core-only on 1.13 doesn't seem to work the same as stable 2019-09-20 13:49:01 -04:00
Brandon W Maister
9a3e48931b Make ci script more understandable and robust, hopefully 2019-09-20 11:19:43 -04:00
Brandon W Maister
ffcd0f9c19 put bincode back to the version used for testing 2019-09-20 11:02:00 -04:00
Brandon W Maister
a09f9ba2a8 Test against serde with no features in both std and no-std 2019-09-20 10:50:28 -04:00
Brandon W Maister
5b72ef3ed6 Make travis.sh and Makefile "nicer"
Slightly easier to reason about the code via some code movement, printing some
banners to make it more obvious when cargo is being run since it is run so many
times.
2019-09-15 20:44:37 -04:00
Brandon W Maister
e8c708d81b Make CI able to run non-cargo commands in channel 2019-09-13 15:50:20 -04:00
Brandon W Maister
5e1e2d5633 Add a trivial function in core test
To ensure that we don't accidentaly not verify that chrono compiles for core.
2019-09-13 14:50:14 -04:00
Brandon W Maister
4027bbb66d Rename serde-1 back to serde 2019-09-13 14:49:41 -04:00
Christopher Serr
e62a054cd9 Introduce an alloc feature 2019-09-09 13:51:10 +02:00
Christopher Serr
5ccec02e54 Use std in all other tests on CI 2019-09-07 12:24:11 +02:00
Christopher Serr
9dc91f78ed Implement Support for no_std
This adds a new `std` feature to chrono that is enabled by default. By
deactivating this feature via `default-features = false` you can now use
chrono in applications that don't use the standard library. The `serde`
feature is supported as well.

Resolves #336
2019-09-07 12:12:49 +02:00
Brandon W Maister
4617e2e5ba Make the wasm-pack tests actually run 2019-09-03 22:30:39 -04:00
Brandon W Maister
2839d8d7db Put wasm-bindgen and js-sys behind a wasm-bindgen feature gate
Fixes #334
2019-09-03 09:05:15 -04:00
eV
f52a29398c one more guard 2019-08-16 21:10:55 +00:00
eV
bd22644b05 only use nvm on mac 2019-08-16 20:04:45 +00:00
eV
93e4f29ee4 see if it was just the particular tz 2019-08-16 19:24:48 +00:00
eV
a7645f3e73 try to use nvm to use node 10 2019-08-16 18:23:28 +00:00
eV
c284d7364b add conditionals so wasm tests build / run in the right places 2019-08-16 17:11:30 +00:00
eV
5d38faeb40 fix local timezone, add tests 2019-08-16 09:35:56 +00:00
Brandon W Maister
403af6b298 Change README chrono version links to just 0.4
docs.rs redirects to the latest version in that range.
2019-06-21 17:49:50 -04:00
Brandon W Maister
2e563bc652 Make README.md match lib.rs mod documentation
And fail CI in the future if `make readme` isn't run when it is needed.

CC conversation in #185, where the README didn't get updated for a year after
lib.rs was improved.
2018-08-25 16:24:07 -04:00