diff --git a/.travis.yml b/.travis.yml index de1bb1e0..162c517b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,4 @@ notifications: slack: secure: WK6Zk2lSqGLB6Hf4J2MOMjPWtDjQwXFJoSapX7mZfRq8ya2wISbmtnjO2pg9g1yKKM9CYgVzJ63NIBk2h9Jhv8EwrNrRGcRyxihTImhQJkCKMjIiYlTD4mR2FAIL7OAyeZgIvdYp7Js4pHUO9T9mRRop04rRq04KOBxywCshUViUcw2r4hQNELB3T/TlZ7hhIXZnosZ4QKPq2vQ0F+K8aZuWca+Zvq5GcRaKdoU+OjOy3ZpLjT9US7JuOB5XtDtHbWgS22QQ0DFg0fBhf2KJrcZ6oyH7gC8ZiRvH2MVyqjUORKw+8Pk0rtjDPeRypspR++mLZsOIA5qzXPEZpsNyitvwLCd6o+YVT0VoONiIXWxKPoCIwE1o0TVdG4ClD/Td8qOVmj4uvM0Jh8U7xNsDAq0xy/Eosr+gWXMVrRGPrWUs87BtL66mtY54MbKyJrLVtkTn4TS5Q5FgHrNzaRsY2qo+IRg1noV8MaVsaRpwTgu2vTeqEdkm2bwWGXPVmRPB9Jm5QM/R5S7flF0IDWrN+m8ZM8GuJS3EFxYuRstPgT8u3dWPYna2vFcnAlW/WTl9LTDJWlBgvj62Hrd9vudKWfO6ZCintqpJfPvLjpvw1/EYpeylVseG/4nIY3CqCx/e2kQWyWu8zwlDSdchGdAcli6PG+jNFUPtivtGSt8rEGI= after_success: - - sh ./scripts/publish-docs.sh + - sh ./scripts/publish-docs-and-examples.sh diff --git a/example/README.md b/example/README.md index 148a542e..9fc2eddd 100644 --- a/example/README.md +++ b/example/README.md @@ -1,23 +1,36 @@ -# mapd-frontend-boilterplate -Boilerplate code for mapd frontend functionality +# Charting Examples -## Installation - -Install the example-specific npm packages. +To run the examples locally, go to the root directory and run: ```bash -cd example/ -npm install -``` - -## Running the example - -Run the example from the top-level directory. - -```bash -cd ../ -npm install npm start ``` -When the browser opens, click the **example** directory to view the examples. +## Running Integration Tests + +The integrations tests for the charting examples are written in [Elixir](http://elixir-lang.org/) using the [Hound](https://github.com/HashNuke/hound) library. + +To run the tests, first install the selenium server by running from the root directory: + +```bash +npm run selenium:install +``` + +Then start the selenium server: + +```bash +npm run selenium:start + +``` + +Next, go into the `example/test` directory and run: + +```bash +mix deps.get +``` + +Once that is done, you can run the tests with: + +```bash +mix test +``` diff --git a/example/example5-deprecated.html b/example/example5.html similarity index 83% rename from example/example5-deprecated.html rename to example/example5.html index 05ed1ebe..7746407c 100644 --- a/example/example5-deprecated.html +++ b/example/example5.html @@ -49,7 +49,7 @@
| Bar Chart, Scatterplot, and Time Chart | @@ -93,6 +93,9 @@
| Backend-rendered Scatter Plot |
| Selection Tool With Raster Chart | +
| Backend-rendered Multi-Layer Map |