Commit Graph

369 Commits

Author SHA1 Message Date
Cristhian Motoche
856f1037dd
Define Hapistrano with Deriving Via strategy (#204)
* Use deriving strategies

* Add missing type classes to derive from

* Remove duplicated runHapistrano

* Only derive from ReaderT

* Replace catch/throw
2022-09-08 09:34:24 -05:00
Cristhian Motoche
a1ccbe631e
[Release] v0.4.6.0 (#203)
* Update README.md

* Update version
2022-07-05 10:14:44 -05:00
Alexis Crespo
40647af28a
[#145] Deploy from a different repository (#193)
* Add GitSetOrigin command

* Add new command tests

* Create second repository path for testing

Co-authored-by: Alexis Crespo <alexis-2cab@homail.com>

* Add tests for new command implementation

* Remove redundant imports in spec file

Co-authored-by: CristhianMotoche <cristhian.motoche@gmail.com>
Co-authored-by: Alexis Crespo <alexis-2cab@homail.com>
2022-07-05 09:35:33 -05:00
Sebastián Estrella
56bf80c171
Tag external workflow (#202) 2022-07-01 10:49:06 -05:00
Sebastián Estrella
1465a90914
Refactor hackage job using an external workflow (#201) 2022-07-01 09:47:06 -05:00
Sebastián Estrella
f017de409c
Fix smoke test (#200) 2022-06-09 16:15:36 -05:00
Sebastián Estrella
e80dc22010
Refactoring CI workflows (#199)
Co-authored-by: Cristhian Motoche <cmotoche@stackbuilders.com>
Co-authored-by: David Mazarro <dmunuera@stackbuilders.com>
2022-06-09 11:23:16 -05:00
Luis Fernando Alvarez
0054efc7b0
Merge pull request #198 from stackbuilders/company-info-footer
Add company info footer to readme, contributing guide
2022-06-03 08:41:12 -05:00
Luis Fernando Alvarez
1e53cbb329 Add company info footer to readme 2022-06-03 08:33:40 -05:00
David Mazarro
9e00c107f4
Updated with new 0.4.5.0 version (maintenance mode) (#197) 2022-05-20 17:29:39 +02:00
David Mazarro
f973b0671e
Add CI workflow step to publish on Hackage on tag push (#196)
* Barebones `hackage.yml` workflow structure

* Removed `hackage.yml`

* Added new `release` job and steps for Hackage distribution

* Commenting `release` job

* Uncommented `release` job and fixed bad syntax

* Fixed bad YAML syntax

* Removed upload-artifact/download-artifact

* Changed version variable to glob expression `*`

* Added Haddock generation and upload steps for Hackage
2022-05-20 10:16:41 +02:00
Sebastián Estrella
0e4bef339b
[#133] Create releases with pre-compiled binaries (#194)
Co-authored-by: Cristhian Motoche <cmotoche@stackbuilders.com>
Co-authored-by: David Mazarro <dmunuera@stackbuilders.com>
2022-05-11 16:30:50 -05:00
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