-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix patching in CI where .elm-land doesn't exist
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# TODO only run if pathces are not already applied | ||
|
||
# TODO how to get elm to re-compute only the selected packages without blowing them all away | ||
rm -rf ~/.elm/0.19.1/packages/ && \ | ||
elm make --output=/dev/null elm-patches/dummyproject/Dummy.elm && \ | ||
make --directory ./elm-patches && \ | ||
rm -rf elm-stuff | ||
|
||
rm -rf ~/.elm/0.19.1/packages/ # TODO how to get elm to re-compute only the selected packages without blowing them all away | ||
cd elm-patches/dummyproject/ # CI env is empty so we use minimal elm.json for dummy project | ||
elm make --output=/dev/null Dummy.elm # build dummy project and output to nowhere, so libraries are re-downloaded | ||
cd ../.. # go back to project dir | ||
make --directory ./elm-patches # apply patches | ||
rm -rf elm-stuff # get rid of cached elm builds so project will create fresh ones with patches |