create_workspace
logic should probably run after before_cache:
script.
In https://api.travis-ci.org/v3/job/560286391/log.txt (build link), I use a stage to build a shared dependency, then add the result to both cache and workspace. Before saving the cache, I clean up the directories from redundant data in before_cache:
. As it is now, the workspace is saved with that redundant data.