-
Notifications
You must be signed in to change notification settings - Fork 0
Admins: Scripting Overview
-
The same .travis.yml file is copied throughout and it does a simple zip operation of the map folder. For example: https://github.com/triplea-maps/total_world_war
-
Then we have the same merge hook as we do for the source game, so a version gets built. Map major versioning is done by having an environment variable set on the Travis UI.
-
And then the migration/management scripts are here: https://github.com/triplea-maps/Project/tree/master/bin The tearDown.sh and deleteBotTokens are more useful for deleting everything and starting clean. Eventually those script should all pretty much go away except for the checker script.
-
This create script is the heart of the migration: https://github.com/triplea-maps/Project/blob/master/bin/createMapRepo.sh
-
A person could use github to build a map, then use the createMapRepo.sh script on the same zip file built. If you then delete the github repo and run the script again, you'll get a fresh new repo (and generally complete with a new travis build).
-
Last two points said another way, this would be a working command:
$./createMapRepo.sh $ (wget https://github.com/triplea-maps/total_world_war/releases/download/0.1/total_world_war.zip) -
And finally the check script does quite a bit of verification of the map repo: https://github.com/triplea-maps/Project/blob/master/bin/check_map_repo.sh
-
Even goes as far as ensuring there is a release posted to github, the last travis build was a success, and downloads the release and verifies file counts and sizes.