Éric Lemoine
221c8077e0
Make hostexamples target more robust
2013-03-06 02:20:10 +01:00
Tom Payne
4eebe5aaf2
Merge spec and src lint targets
2013-03-04 20:51:27 +01:00
Tom Payne
9b122815ce
Lint specs with strict mode
2013-03-04 20:46:39 +01:00
Tom Payne
e776371f54
Check for requires in specs
2013-03-04 20:02:28 +01:00
Tom Payne
14e76b3a11
Don't assume that goog.requires are always first
2013-03-04 20:02:16 +01:00
Éric Lemoine
85db5273be
Merge pull request #257 from elemoine/verify-examples
...
Verify hosted examples at precommit time
2013-03-03 15:06:11 -08:00
Éric Lemoine
337fd11a05
Load the examples using PhantomJS
...
This commit adds a check-examples target to check that the hosted examples load without errors.
2013-03-03 19:46:09 +01:00
Tom Payne
b75298e957
Don't check for requires in comments
2013-03-03 18:29:16 +01:00
Éric Lemoine
bd67a14389
Make wms-capabilities example work when hosted
2013-03-03 17:10:50 +01:00
Éric Lemoine
6b9e79171b
SIMPLE and WHITESPACE builds
2013-03-03 15:05:02 +01:00
Tom Payne
8c2eb55f64
Work around extractall bug in older versions of Python
...
Python bug: http://bugs.python.org/issue4710
Refs #200
2013-02-18 19:15:31 +01:00
Tom Payne
cb9fbc3dec
Add Proj4js to test framework
2013-02-18 14:44:35 +01:00
Tom Payne
be48a30d6a
Add target to download and install Proj4js
2013-02-18 14:44:14 +01:00
Tom Payne
e6ed1c1a89
Temporarily work around pake's eager evaluation of variables in target names
2013-02-15 00:45:13 +01:00
Tom Payne
012cb501df
Don't re-lint files that have already passed after a lint failure
2013-02-15 00:33:05 +01:00
Tom Payne
83a00c13fa
Don't use problematic glob function
2013-02-12 23:03:15 +01:00
Tom Payne
9a3e090c2b
Run tests on Windows
2013-02-12 16:07:34 +01:00
Tom Payne
d828fee582
Set path to gjslint on Windows
2013-02-12 15:47:54 +01:00
Tom Payne
169555f2be
Use ifind rather than glob to work around Windows path separator nonsense
2013-02-12 15:31:30 +01:00
Tom Payne
a3e7528841
Guess paths to Windows binaries using environment variables
2013-02-12 15:30:36 +01:00
Tom Payne
0c09083eb8
Add missing whitespace to satisfy pep8
2013-02-12 15:28:20 +01:00
Marc Jansen
192f29513e
Merge pull request #189 from marcjansen/travis-tests
...
Fix the serve-precommit target. (r=@elemoine/@twpayne)
2013-02-12 06:10:26 -08:00
Marc Jansen
d851cac891
Fix the serve-precommit target.
...
When the plovr-jar is being invoked in the serve-precommit target, it needs
the JSON files in `test/` as well to have all requirements for headless testing.
This should also reenable running the testsuite on our continuous integration
server.
2013-02-12 14:28:58 +01:00
Marc Jansen
a0932c6cba
Merge pull request #177 from marcjansen/build-clean
...
(Re)add a reallyclean target to the build. (r=@elemoine)
2013-02-12 01:57:01 -08:00
Marc Jansen
6de649f6c6
(Re)add a reallylean target to the build.
...
Previously we had both a `clean` and `reallyclean` in our Makefile; both
got lost when we switched to a python build.
A clean 'target' can be invoked by calling the build script with the '-c' flag:
./build.py -c
This commit readds the `reallyclean` target and lets it clean up a little more
than the Makefiles `clean` or `reallyclean` did. More files are deleted,
but only if these are being ignored inside of the repository (e.g. through
.gitignore files).
2013-02-12 10:11:14 +01:00
Tom Payne
91141f5c01
Build precommit target by default so precommit dependencies get cleaned by default
2013-02-06 11:25:15 +01:00
Tom Payne
90730e40a3
Ensure ./build.py -c cleans examples/example-list.xml
2013-02-06 11:23:04 +01:00
Éric Lemoine
f735a597fe
Merge pull request #171 from elemoine/testdeps2
...
Use namespaces for tests
2013-01-31 02:02:33 -08:00
Éric Lemoine
b6ed5f2164
Use namespaces for tests
...
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
2013-01-31 10:18:21 +01:00
Tom Payne
c9e8a92265
Detect missing goog.requires
2013-01-30 22:48:04 +01:00
Tom Payne
7d5cc39555
Detect unused goog.requires
2013-01-30 22:48:03 +01:00
Marc Jansen
69b915620d
Add fixme/todo target to build.py.
...
Will show a list of lines in sourcefiles that either contains the string TODO
or FIXME.
Example output:
user@host:~/src/ol3 $ ./build.py fixme
src/ol/source/xyzsource.js has 4 matches:
#1 // FIXME add minZoom support
#46 // FIXME use goog.nullFunction ?
#59 // FIXME factor out common code
#76 // FIXME we shouldn't need a typecast here
src/ol/interaction/dragpaninteraction.js has 2 matches:
#1 // FIXME works for View2D only
#39 // FIXME works for View2D only
2013-01-24 10:04:36 +01:00
Tom Payne
1ebea904ab
Only run gjslint on modified files
2013-01-17 12:33:10 +01:00
Tom Payne
60c0ca9e49
Re-add doc to precommit target, fixes #94
2013-01-12 00:52:27 +01:00
Tom Payne
6bba086aca
Use from/import for brevity
2013-01-11 18:25:58 +01:00
Tom Payne
cd6c5ee6ed
Disable document generation in precommit target, refs #94
...
Revert this commit when issue #94 is fixed.
2013-01-05 18:34:35 +01:00
Tom Payne
df8685638c
Detect corrupt downloads
2012-11-09 11:45:58 +01:00
Tom Payne
bf4e7bcb70
Work around broken operating systems
2012-11-09 11:45:58 +01:00
Tom Payne
05f3ab3290
Remove unused import
2012-11-09 11:45:31 +01:00
Tom Payne
bf231d0c41
Fold gh-update-pages into build.py
...
This also fixes a bug in gh-update-pages: gh-update-pages does not
handle file deletition, meaning that stale files are never removed.
2012-11-04 19:08:56 +01:00
Tom Payne
d30be0fb93
Merge bin/generate-requireall into build.py
2012-11-04 19:08:55 +01:00
Tom Payne
f78afc8d66
Add pake.py
...
See https://github.com/twpayne/pake
2012-11-04 19:08:26 +01:00
Tom Payne
81b4213fd7
Add build.py
...
This removes the dependencies on make, sh and curl for building ol3.
2012-11-04 19:08:26 +01:00