Commit Graph

357 Commits

Author SHA1 Message Date
Sebastián Estrella
00f285010b
Fix build cache issues (#192) 2022-04-25 21:48:34 -05:00
Franz Guzmán
c377835763
Maintenance mode commands (#169)
* Create maintenance command

* Read filepath and filename

zsh:1: command not found: q

* Addd config and test

* Addd config and test

* Add tests and imports

* Add test for writing maintenance file

Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>

* Expand writeMaintenancFile function

Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>

* Add functionality for command enable

Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>

* Add delete function

* Add filename and directory from configPath

zsh:1: command not found: wq

* Remove unused file

* Change variable name

* Remove Utils from cabal file

* Remove environment file

* Change pattern

* Add suggested formatting and comments

* Add more suggestions and option to run stack

* Update README with new variables

* Update README with changes

Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
2022-04-19 14:03:17 -05:00
Cristhian Motoche
206e58cf07
Merge pull request #190 from stackbuilders/fix/change-pvp
[FIX] Change version to 0.4.4.0
2022-04-12 16:46:14 -05:00
CristhianMotoche
8e34fa066e Change version to 0.4.4.0 2022-04-12 16:09:48 -05:00
Cristhian Motoche
15dd309727
[RELEASE] Documentation changes and release preparation (#184)
* Avoid 'Table of Contents' in first title

* Change titles and add notes for Windows

* Change maintainer and remove it from modules

* Prepare release
2022-04-12 15:57:44 -05:00
Sebastián Estrella
4f4533b494
Move md files to extra-doc-files block (#189) 2022-04-12 10:46:47 -05:00
Sebastián Estrella
9c793f78cc
[#188] Push image to a Docker registry (#187) 2022-04-11 14:42:59 -05:00
Sebastián Estrella
facc8b0693
[#185] Simplify CI build matrix (#186)
* Simplify CI build matrix

* Add quotes to GHC versions

* Update tested versions of GHC in cabal file

Co-authored-by: CristhianMotoche <cristhian.motoche@gmail.com>
2022-04-09 10:53:58 -05:00
Sebastián Estrella
51c2f9b550
[#181] Separate build-and-test from the release process (#183)
Co-authored-by: Franz Guzmán  <fguzman@stackbuilders.com>
2022-04-01 13:45:11 -05:00
David Mazarro
f3fbe9a34c
Merge pull request #179 from stackbuilders/ci-haddock-name
Added name to Haddock step
2022-02-09 16:19:19 +01:00
David Mazarro
8a51f2f288
name and run in Haddock step are now in the same object
Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
2022-02-09 16:07:58 +01:00
David Mazarro
52c4bbcd49
Added name to Haddock step 2022-02-09 16:00:59 +01:00
David Mazarro
a8bba052f8
Merge pull request #178 from stackbuilders/haddock-errmsg
CI now has an error message for the Haddock step when there are less than 4 modules with 100% documentation
2022-02-09 15:30:58 +01:00
David Mazarro
739d54bddc
CI now has an error message for when Haddock step fails 2022-02-09 13:13:56 +01:00
David Mazarro
2bfde28d69
Merge pull request #174 from stackbuilders/keep-failed-releases
Added `keep_one_failed` option that deletes failed releases except for the latest one
2022-02-08 16:48:45 +01:00
DavidMazarro
4c6c44bd1b
Changed package maintainer from Juan Paucar to Cristhian Motoche 2022-02-08 16:36:14 +01:00
DavidMazarro
c309495ac1
Added test for dropOldReleases when --keep-one-failed is active 2022-02-07 16:57:42 +01:00
DavidMazarro
48bae772eb
Readded call to dropOldReleases when a deployment is successful 2022-02-07 13:38:50 +01:00
DavidMazarro
e2286dbdca
Removed short version of --keep-one-failed flag 2022-02-07 13:21:59 +01:00
DavidMazarro
6f02bbfce0
Merge branch 'keep-failed-releases' of github.com:stackbuilders/hapistrano into keep-failed-releases 2022-02-04 17:15:42 +01:00
DavidMazarro
681ae894a3
Added documentation 2022-02-04 17:14:33 +01:00
DavidMazarro
83ee3a27e0
Added missing import which made the test spec suite fail 2022-02-04 17:14:33 +01:00
DavidMazarro
eb5d1071b8
Added new Unknown value to DeployState enum 2022-02-04 17:14:33 +01:00
David Mazarro
4676c3217c
Minor refactor in function stateToBool
Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
2022-02-04 17:14:33 +01:00
DavidMazarro
fd4fdc68d3
Decoupled functions from using .hapistrano_deploy_state filename directly 2022-02-04 17:14:33 +01:00
DavidMazarro
b55d5bb9fc
Changed --keep-one-failed CLI short option from -f to -o
This is motivated by the fact that typically, `-f` is associated with some sort of "forcing" action, which is not what this does.
2022-02-04 17:14:33 +01:00
DavidMazarro
4da23e4f24
Deleted commented line 2022-02-04 17:14:33 +01:00
DavidMazarro
c219856969
--keep-one-failed flag now works and failed releases are deleted
Also: fully replaced `ctokens` with the new `.hapistrano_deploy_state`, updated the tests accordingly, and a couple more of necessary refactors.
2022-02-04 17:14:33 +01:00
DavidMazarro
7ea1b1b9ab
Moved exception handler from runHapistrano to main 2022-02-04 17:14:33 +01:00
DavidMazarro
d5a180dca3
When deploying a release, now it gets tagged with fail or success 2022-02-04 17:14:33 +01:00
DavidMazarro
d85a2598ee
Refactor and WIP createHapistranoDeployState
Refactor is mainly moving runHapistrano from System.Hapistrano.Core to System.Hapistrano, and moving Opts and Command datatypes from Main to System.Hapistrano.Types
2022-02-04 17:14:33 +01:00
DavidMazarro
f57cc0c739
Fixed accidental import removal in previous commit 2022-02-04 17:14:33 +01:00
DavidMazarro
7bb0405bfb
Added CLI flag and hap.yaml setting for keeping failed releases 2022-02-04 17:14:33 +01:00
David Mazarro
205c887d2f
Merge pull request #175 from stackbuilders/haddock-ci-pipeline
Changed command at the Haddock step
2022-02-04 16:46:58 +01:00
David Mazarro
f8ac35dfb6
Added extended regex to grep at Haddock step
Also changed the regex to match numbers greater or equal than 4 since the previous commit was wrong.
2022-02-04 11:05:53 +01:00
David Mazarro
16575b5890
Changed Haddock step (again)
Now it's not verbose but supports a number of 100% coverage for more than 4 or 5 modules
2022-02-03 18:02:49 +01:00
David Mazarro
c5dd13c638
Changed command at the Haddock step 2022-02-03 16:48:12 +01:00
DavidMazarro
c2fb0d876e
Added documentation 2022-02-03 16:18:59 +01:00
DavidMazarro
e71c9e7368
Added missing import which made the test spec suite fail 2022-02-03 15:36:45 +01:00
DavidMazarro
727c207f00
Added new Unknown value to DeployState enum 2022-02-03 11:51:08 +01:00
David Mazarro
94490807ba
Minor refactor in function stateToBool
Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
2022-02-03 10:58:15 +01:00
DavidMazarro
ebff838e2c Decoupled functions from using .hapistrano_deploy_state filename directly 2022-02-02 15:16:16 +01:00
DavidMazarro
41951df8c9 Changed --keep-one-failed CLI short option from -f to -o
This is motivated by the fact that typically, `-f` is associated with some sort of "forcing" action, which is not what this does.
2022-02-02 11:17:11 +01:00
DavidMazarro
d0c5e87154 Deleted commented line 2022-02-02 11:01:36 +01:00
DavidMazarro
28ff5b3c85 --keep-one-failed flag now works and failed releases are deleted
Also: fully replaced `ctokens` with the new `.hapistrano_deploy_state`, updated the tests accordingly, and a couple more of necessary refactors.
2022-01-31 19:04:35 +01:00
DavidMazarro
d9f63a6906 Moved exception handler from runHapistrano to main 2022-01-27 15:19:02 +01:00
DavidMazarro
c1a918af4b When deploying a release, now it gets tagged with fail or success 2022-01-24 20:25:58 +01:00
DavidMazarro
2a2766e4a4 Refactor and WIP createHapistranoDeployState
Refactor is mainly moving runHapistrano from System.Hapistrano.Core to System.Hapistrano, and moving Opts and Command datatypes from Main to System.Hapistrano.Types
2022-01-21 14:06:18 +01:00
DavidMazarro
0bf5e575ca Fixed accidental import removal in previous commit 2022-01-19 19:14:34 +01:00
DavidMazarro
90b2b48160 Added CLI flag and hap.yaml setting for keeping failed releases 2022-01-19 14:16:15 +01:00