- Make sure you have Elixir, Node, Yarn and PhantomJS installed and up-to-date
- Install Elixir dependencies with
- Install Node.js dependencies with
mix yarn install
In order to validate datasets:
- Make sure you have gtfs-validator installed and up-to-date
- Set the environment variable
GTFS_VALIDATOR_URLto your datatools running instance URL.
- Run the server with
- Run the webdriver server with
- Run the tests with
- Run the integration tests with
mix test --only integration
- Run the solution tests with
mix test --only solution
- Run the external tests with
mix test --only external
- Run the elixir linter with
mix credo --strict
mix npm "run linter:ecma"
- Run the sass linter with
mix npm "run linter:sass"
Now you can visit
127.0.0.1:5000 from your browser.
The Dockerfile needed to run the continuous integration is in the project: https://github.com/etalab/transport-ops
Update it if needed (e.g. updating Elixir’s version) and then update