Split build and test scripts