How to run integration tests locally

How do I run integration tests locally? I had a look at drone and it executes “./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int” command. I tried it locally, but I have no “maintenance:install” command available for occ (Command “maintenance:install” is not defined.) Do I need to do something beforehand for this command to work?