Commit Graph

46 Commits

Author SHA1 Message Date
DavidMazarro
83ee3a27e0
Added missing import which made the test spec suite fail 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
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
d5a180dca3
When deploying a release, now it gets tagged with fail or success 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
wanderer163
d00d2843cc
Fix grammar issues and typos (#168) 2021-10-31 20:14:05 -05:00
Juan Paucar
2ea067a32d fix ghc 9 warnings 2021-10-18 09:54:14 -05:00
Juan Paucar
4863bc9421 fix older than ghc 9 warnings 2021-10-18 09:25:58 -05:00
Felix Miño
3aa07f5464
Merge branch 'master' into add_working_directory 2021-06-10 17:08:56 -05:00
Esteban Ibarra
596f37f68d
Update path upper bounds (#159) 2021-05-31 19:36:23 -05:00
Felix Mino
94a56392c0 Hapistrano changes 2021-04-13 18:09:11 -05:00
Felix Mino
fcac5f42bb Tests refactored 2021-03-29 11:08:09 -05:00
Felix Mino
754918b7a8 Testing releasePath 2021-03-29 11:08:09 -05:00
Sebastián Estrella
882166309b WIP test 2021-03-29 11:06:58 -05:00
Sebastián Estrella
483e95060c Fix specs 2021-03-29 11:06:58 -05:00
Esteban Ibarra
a6183c01fb
Copy directory instead of cloning an entire repository (#135)
* Copy directory instead of cloning an entire repository

* Improve haddock of types

* Rename new ADT to Source

* Add tests for new configuration

* Update changelog and readme

* Addres PR comments

* Updated changelog and hapistrano's version

Co-authored-by: Juan Paucar <jpaucar@stackbuilders.com>
2020-03-29 19:54:39 -05:00
Esteban Ibarra
54e749388f
Add support for LTS-15.0 (#137)
* Add support for LTS-15.0

* Add CPP for test suite

* Change header entry to "master"
2020-03-18 21:02:15 -05:00
William R. Arellano
f8a869ce3d Quickcheck property tests (#128)
* Add property check quote command

* Add property test trim function

* Fix biased test cases for trim function

* Stack lock

* Separated property tests from other tests

* Fixes on imports

* PR quickcheck

* Remove wrong comment

* Add property test for generic and ungeneric command

* Refactoring isCmdString function

* Fix conflicts

* Add quickchek part 1
2019-11-11 13:01:17 -05:00
Juan Paucar
e7a2d4d0b7 Solve hlint comments 2019-07-26 17:57:17 -05:00
David Proaño
a006d1bc70 added timestamp (#111)
* Added timestamp

* Update test to fix issue

* Update CHANGELOG and cabal file

* Update installed package with apt
2019-01-24 10:52:52 -05:00
Cristhian Motoche
2b7b95d4fb
Support for zsh default shell fails (#110)
* Use zsh and bash

* Install zsh in travis

* Update bounds

* Update version

* Install zsh using apt addons
2019-01-09 13:49:43 -05:00
Cristhian Motoche
478bb91d26
Support shared files and directories (#109)
* Support shared files and directories

* Update README, CHANGELOG and PVP in .cabal file

* Add tests for shared files and dirs

* Update tests description

* Do not check the list order in files list

* Use a upper bound of directory

* Follow suggestions and comments in PR
2019-01-09 12:05:37 -05:00
Cristhian Motoche
c4ee20ba38
Add process-streaming (#108)
* Add process-streaming

* Add test for Hap.exec

* Remove process-streaming and use typed-process instead

* Add stm

* Update CHANGELOG, hapistrano.cabal and comment in a module
2018-12-21 10:41:27 -05:00
Esteban Ibarra
d72e0930ca Refactor according to PR comments for clean up. 2018-10-22 10:18:53 -05:00
Sebastián Estrella
f5fba2a5b2 Read release-format and keep-releases from the configuration file
Co-authored-by: Esteban Ibarra <eibarra1992@hotmail.com>
2018-10-20 08:23:24 -05:00
Götz Christ
a32b944001 Standarize style and small cleanup
Using stylish-haskell
2017-12-27 13:54:32 -05:00
Juan Carlos Paucar
e05ecf6f70 Make distinction between target platforms for deploy 2017-12-04 16:42:19 -05:00
Götz Christ
0259624abf Use git checkout to set the release revision (close #69) (#83)
* Use git checkout to set the release revision (close #69)

* Tests

* Removed unneeded dependencies from specs.
2017-11-19 16:50:48 -05:00
Sibi Prabakaran
ede332fea4
Fix typo: /s/preforms/performs 2017-09-04 22:16:23 +05:30
Sibi Prabakaran
bcf31c2cf5
Add hspec tests for both the scenarios 2017-09-04 22:16:00 +05:30
mrkkrp
9d933ac71d Drop no-longer useful completion tokens 2017-03-02 00:24:35 +03:00
Mark Karpov
e4790b3619 Implement concurrent multihost deployment (#60)
* Implement concurrent multi-host deployment
* Fix a couple of typos/obsolete info in ‘CHANGELOG.md’
2017-03-02 00:40:08 +04:00
Mark Karpov
7727061493 Add verification before rollbacks (#53) 2017-02-08 20:16:53 +04:00
Mark Karpov
72a1b75e70 Refactor/rewrite all the code (#52)
* Refactor/rewrite all the code

The change prepares solid ground for further improvements. This also fixes
at least two bugs:

* Proper support for empty lines and comments in build scripts.

* Previously switching to new releases was not atomic despite messing with
  symlinks. This is because it deleted the current link before creating the
  new one, but it should have created a new link and then use ‘mv’ to
  replace the old one atomically. The code has been changed to work properly
  now.

* Refresh the test suite as well

* Fix the build for older GHCs

* Use subshell for ‘cd’ commands
2017-02-06 19:04:00 +04:00
Cristhian Motoche
c6dd1bc640 Parse env variable PORT (#39) 2017-01-28 17:43:45 +04:00
Juan Paucar
8c760cff32 Support comments and empty lines (#44) 2017-01-28 17:08:37 +04:00
Juan Pedro Villa Isaza
ca5c7a28ad Configure Git to fix tests 2015-09-24 10:19:30 -05:00
Juan Pedro Villa Isaza
ada5961a5f Remove unused runCommand function 2015-09-23 09:20:24 -05:00
Juan Pedro Villa Isaza
41503107b0 Fix tests on Linux 2015-09-22 20:13:51 -05:00
Juan Pedro Villa Isaza
c6fb4becfc Clean up (Cabal) package 2015-09-09 14:05:20 -05:00
Justin Leitgeb
7720575b22 Fix haddock 2015-03-12 22:15:57 -05:00
Justin Leitgeb
4798fdb51f More cleanup 2015-03-12 22:11:21 -05:00
Justin Leitgeb
43d1eee78a Hlint fix 2015-03-12 21:07:16 -05:00
Justin Leitgeb
bac5887546 Create local test git repo 2015-03-12 21:02:32 -05:00
Justin Leitgeb
ada63d36c1 Use monads with more specific effects 2015-03-12 14:51:52 -05:00
Justin Leitgeb
2653d984bb Refactoring and test additions 2015-03-11 16:02:52 -05:00