I have a Bash script for a project that looks something like this:
#!/usr/bin/env bash
curl -LOk (url)/project.zip
mkdir project
unzip project.zip -d project
cp -rf project/assets assets
rm -rf project && rm -rf project.zip
gradle test
So all it does is download the archive I want from a different project, copy its assets to the current project's workspace, delete said archive and the extracted stuff I don't want, and then run a test suite to be sure everything's working. Since I use Gradle to run the test suite, I'd like to migrate everything to be 100% Gradle so that the build process can be 1) multi-platform & 2) easily managed since my build script is constantly maintained. How should I go about doing this? After some research I ran into gradle-download-task; would that help handle the download segment, or is there a better alternative?
Aucun commentaire:
Enregistrer un commentaire