Update build to run linting and requirejs optimisation steps as well as tests