Commit graph

9179 commits

Author SHA1 Message Date
Dan Stillman
ccb30351c0 Fix incorrect purging of files on WebDAV 2017-06-14 03:20:23 -04:00
Dan Stillman
700aa5377b Don't repeat filenames in results from WebDAV _deleteStorageFiles() 2017-06-14 03:20:23 -04:00
Dan Stillman
db6e9841db Only purge orphaned WebDAV files if downloads completed successfully 2017-06-14 02:38:48 -04:00
Dan Stillman
d2d5896b0b Sort groups in Libraries to Sync window 2017-06-13 21:30:25 -04:00
Dan Stillman
7dd9cee0d4 Update package.json and package-lock.json 2017-06-13 18:04:10 -04:00
Dan Stillman
88089e290d Update locales from Transifex 2017-06-13 18:03:59 -04:00
Dan Stillman
5e4d3a35b8 Merge pull request #1245 from adomasven:feature/prompt-different-drive-migration
Don't auto-migrate data dir if target on a different drive
2017-06-13 17:17:50 -04:00
Adomas Venčkauskas
a17b486e4b Don't auto-migrate data dir if target on a different drive
See https://forums.zotero.org/discussion/comment/277632/#Comment_277632
2017-06-13 17:17:34 -04:00
Dan Stillman
98544edde5 Better logging when revealing attachment in filesystem 2017-06-08 14:13:24 -04:00
Dan Stillman
8913178cf2 Better logging for getAsync() non-integer errors 2017-06-08 14:13:24 -04:00
Dan Stillman
0495f2920a Merge pull request #1243 from tnajdek/master
Fix a problem with race condition during builds
2017-06-07 12:37:47 -04:00
Tom Najdek
3a6776f0fa Symlink task should not have clean task as pre-requisite 2017-06-07 17:33:28 +01:00
Dan Stillman
b5424b4a71 Fix context menu options for multi-item selection (broken in 5d16352f57) 2017-06-07 11:50:06 -04:00
Dan Stillman
ad37741fdd Upload Travis ZIPs to subdirectory of download bucket 2017-06-06 04:59:41 -04:00
Dan Stillman
d81e463507 Update translators 2017-06-06 04:37:45 -04:00
Dan Stillman
75ddd879bc Update citeproc-js to 1.1.170 2017-06-06 04:35:38 -04:00
Dan Stillman
d9a8502e27 Add package-lock.json 2017-06-06 04:29:18 -04:00
Dan Stillman
a80d29d917 Make uploaded build ZIPs publicly readable 2017-06-06 04:28:36 -04:00
Dan Stillman
294102b27d Travis deployment updates
Use commit hash as ZIP filename and only build on release channel
2017-06-06 03:08:48 -04:00
Dan Stillman
98f1ac5edb Merge pull request #1240 from tnajdek/master
Tweaks to make build work on Windows
2017-06-06 02:18:45 -04:00
Dan Stillman
cd6079d869 Relax last-sync-time check in sync runner test 2017-06-06 02:14:23 -04:00
Dan Stillman
dcb3d740bc Upload ZIP of build files to S3 after successful Travis run 2017-06-06 01:52:53 -04:00
Tom Najdek
4ca3cf1487 Ignore all bluebird files when processing during the build 2017-06-06 00:36:03 -04:00
Tom Najdek
e86bbfbda0 Tweak test runner to work in MSYS environment on Windows 2017-06-06 00:36:03 -04:00
Tom Najdek
e207124f88 On Windows, copy files instead of symlinking 2017-06-06 00:36:03 -04:00
Tom Najdek
c335099465 Add support for glob in babel-worker ignored paths
* Also fixes an issue with handling paths on Windows
2017-06-06 00:35:59 -04:00
Tom Najdek
f98ccdee46 Ensure build process exits with non-zero result on failure
* During build, error is printed out with stack and process exits
* During development, initial build behaves as above, however when
  watching files, errors are displayed but watch process does not
  exit allowing fixes without a complete rebuild.
2017-06-05 11:41:10 +01:00
Dan Stillman
b79ecfb5fe Temporarily disable test for non-integer getAsync() 2017-06-05 03:00:15 -04:00
Dan Stillman
71d636e8fb Make non-integer id passed to getAsync() non-fatal for now
Follow-up to 4e1937680f
2017-06-04 21:35:54 -04:00
Dan Stillman
653f041140 Fix report generation after 4e1937680f 2017-06-04 21:33:14 -04:00
Dan Stillman
47f7f3a93f Fix logging of unhandled promise rejections 2017-06-02 10:37:40 -04:00
Dan Stillman
4b0e2a9554 Fix separate note window (regression from 4e1937680f) 2017-06-02 10:36:44 -04:00
Dan Stillman
898a1dc679 Add alternative to padStart for test in Fx45 2017-06-01 16:44:11 -04:00
Dan Stillman
53842adefc Add explicit npm i
(Travis might call this automatically before 'script', but we need it
before 'gulp build', and we don't want to do 'gulp build' in 'script',
because the output isn't relevant and if it fails there's no need to run
the tests.)
2017-06-01 16:11:03 -04:00
Dan Stillman
595ab592aa Use Node.js mode on Travis 2017-06-01 16:03:32 -04:00
Dan Stillman
140217d0fe Fix Firefox 54 download on Travis 2017-06-01 15:47:06 -04:00
Dan Stillman
201af23484 Remove sinon-as-promised from package.json 2017-06-01 15:44:25 -04:00
Dan Stillman
6c9f3864e7 Switch to Firefox 54 Beta on Travis 2017-06-01 15:39:43 -04:00
Dan Stillman
d889d26394 Run build step before running tests on Travis 2017-06-01 15:39:43 -04:00
Dan Stillman
05ff16c17f Fix some breakage from 013dc958b3 2017-06-01 15:39:42 -04:00
Dan Stillman
ede03f4366 Update some Sinon reset() calls
In Sinon 2, reset() now resets both behavior and history, so if a stub
specifies behavior and we want to use it again, we have to call
resetHistory().
2017-06-01 15:39:42 -04:00
Dan Stillman
522391bc3e Enable retainLines in Babel config
Addresses #1235 (maybe sufficiently, depending on how much we care about
wacky code in the builds)
2017-06-01 15:39:42 -04:00
Dan Stillman
04db119ae8 Merge pull request #1239 from tnajdek/master
Enable running tests against babelized code in build/dir
2017-06-01 15:38:26 -04:00
Tom Najdek
a59b78e59e Tweak test syntax that breaks with current version of chai-as-promised
* Second parameter should be an optional message, however is treated
  as a string that should be contained in the error message
2017-06-01 11:36:18 -04:00
Tom Najdek
4ec6925220 Remove "Error:" expected in error messages.
* "Error:" seems to have been injected into the message by Bluebird,
  but that's no longer the case
2017-06-01 11:36:18 -04:00
Tom Najdek
063e13ef22 Modernize sinon.stub() calls 2017-06-01 11:36:17 -04:00
Tom Najdek
506b35840e Add a shutdown hook in Zotero.Prefs to unregister observer
* Without this, preference change observers stack, triggering multiple
  times if Zotero is re-initialized multiple times within the same
  browser instance (like in tests)
2017-06-01 11:36:17 -04:00
Tom Najdek
aa6037c088 Re-introduce custom implementation of setTimeout
* Resolves issues with some tests failing
2017-06-01 11:36:17 -04:00
Tom Najdek
289b049377 Support generators in tests via coMocha, instead of custom code
* coMocha offers better error stack trace
2017-06-01 11:36:17 -04:00
Tom Najdek
14bf3184bb Fixes and tweaks to make tests work with babelized code
* Use mocha, chai & sinon from the npm. As of sinon 2.0
  sinon-as-promised is no longer required so it is removed
* Tweak code to re-use the same loader with the same environment
  throghout the code
* Introduce browserify step for testing tools that only provide
  node-compatible libraries (sinon, chai-as-promised)
* Introduce copy step for test data to resolve multiple issues with
  tests depending on files not being symlinks
* Re-introduce custom implementation of setTimeout to resolve issues
  with few tests
* Re-introduce custom Bluebird Promises config & monkey patch
2017-06-01 11:36:16 -04:00