Group environmental variables used for tests

Having de facto two tests within 'script' (mobile and regular) was causing
some builds to error out, since we were running into travi's time limit of
50 min. Defining the environmental variables in 'env' makes each combination
count as a single test run.