Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 962 Bytes

dev.md

File metadata and controls

36 lines (25 loc) · 962 Bytes

Development Environment

Spark-Redis is built using Apache Maven and a helper GNU Make file. Maven is used to build a jar file and run tests. Makefile is used to start and stop redis instances required for integration tests.

The Makefile expects that Redis binaries (redis-server andredis-cli) are in your PATH environment variable.

To build Spark-Redis and run tests, run:

make package

To run tests:

make test

If you would like to run tests from your IDE, you have to start Redis test instances with make start before that. To stop test instances, run make stop.

To build Spark-Redis skipping tests, run:

mvn clean package -DskipTests

To change scala version use ./dev/change-scala-version.sh script. It will change scala version in pom.xml. For example:

./dev/change-scala-version.sh 2.12
./dev/change-scala-version.sh 2.11