Commit graph

29 commits

Author SHA1 Message Date
5e0cea3626
[skip ci] copy assets to bin build during build 2020-02-12 15:05:19 +00:00
9e2b011e39
chore: updated Copyright 2020-02-11 16:27:47 +00:00
99ebc86270
refactor: add lint test and refactor code.
- lint test using golangci-lint.
- lint test added as a job in the testing stage.
- code refactoring based on feedback.
2020-01-24 09:51:21 +00:00
0a2b9c483e
fix: limit the height and width of flex
This commit fixes the issue where the app was using
the full height of the terminal screen.

The fix include setting the 'fullscreen' boolean to
false and explicity defining the size using SetRect.
2020-01-20 20:29:45 +00:00
1d79a4c7e6
test: added test suite for validating Pominal 2020-01-20 09:13:47 +00:00
4c38bfb828
ci: remove JUnit report
It serves no purpose for me. It only causes issues.
2020-01-19 23:18:30 +00:00
19b599e341
refactor: remove drawInfo from UpdateSession
This is migrated to the Run method. This commit
solves the issue that the desktop notification
goes off when Pominal is started.
2020-01-19 23:10:03 +00:00
1be999c8b6
fix: initialize channel before the ticker 2020-01-19 21:30:29 +00:00
c8a1d0adfa
refactor: add a stop channel 2020-01-19 21:26:46 +00:00
45ad772818
feat: Basic UI for Pominal 2020-01-18 19:24:35 +00:00
0f19832fca
ci: typo fix in only clause 2020-01-18 01:55:28 +00:00
e4df5bfb8e
ci: run junit report from branches
JUnit reports are useful for merge requests
so it is generate only from commits to branches
other than master.

This solves the issue where the code coverage was missing
from the badge and no testing logs are shown in the console
output.

Also fixed (hopefully) is the deployment of the coverage
report to my GitLab pages site.
2020-01-18 01:48:27 +00:00
5fd24b80df
test: improve testing suite and added reporting
* replace the table driven test with sub tests.
* create and publish code coverage reports via GitLab pages.
* use JUnit to view test results in the test tab in the pipeline view.
* upgrade Go to version 1.13.6.
2020-01-18 01:04:51 +00:00
0a86afbec3
chore: updated Go to version 1.13.4
As part of the Go update the flag.Parse()
function was moved out of init() and into
main() as the test was failing.
2019-12-01 20:30:20 +00:00
425f23e70f
fix: set minimum maxWorkSessions for a cycle
- set the minimum number of work sessions to 1.
- test the creation of Pominal variables.
2019-09-23 09:05:19 +01:00
d82196575b
feat: set minimum time to 60 seconds 2019-09-20 00:55:10 +01:00
f0b46ed8b7
refactor: code refactoring to improve stability.
This commit removes the need to calculate the time remaining in a
session and instead introduces a countdown counter which decrements at
each one second 'tick'. This stabilizes the interface where it appeared
that he timer was randomly pausing or skipping time.

A summary of changes made in this commit includes:

- Updated the command line flags so that they are easier to remember.
- The work, short break and long break session times are now parsed and
converted to type float64. These times represent the total amount of
seconds.
- Removal of timer and finish from Pominal.
- The method that calculates the time remaining is removed.
- A countdown counter is added to the Pominal type.
- Updated alert message for the desktop notification.
- Simplified the Run method by moving the logic to chosse the next session
in a separate method.
2019-09-18 09:08:12 +01:00
1ccf3b6302
chore: bump go to v1.12.9 2019-09-15 22:52:45 +01:00
09002e6d91
refactor: move Pominal type & methods to new file 2019-09-11 09:03:40 +01:00
91077e94bf
chore: add assets to archive on release 2019-08-16 20:25:32 +01:00
38ae9ed082
feat: added desktop notification integration 2019-08-16 09:20:56 +01:00
4daa57de82
feat: show versions 2019-08-14 20:07:27 +01:00
0cd7dab556
ci: added release (semi)automation
- security: updated Golang version to 1.12.8 for CI builds
- added: configuration for build and release automation using GoReleaser
(https://goreleaser.com)
- (Releases will be semi-automatic for now due to the need of the access
token. When/if project specific access token is supported then I'll
complete the release stage of the pipeline.)
- added: version.go for printing out the versions
2019-08-14 01:10:28 +01:00
18cdd01dc8
fix: use math.Ceil to stabilise the timer display 2019-08-12 09:22:51 +01:00
705566e74f
ci: set up CI/CD 2019-06-30 01:25:36 +01:00
4b8f584411
ci: added basic Makefile 2019-06-29 22:11:25 +01:00
a68cc534b5 feat: added Pominal
This is the first commit of Pominal,
a Pomodoro application for the terminal.

This commit includes:
- Timers for work sessions, short breaks and long breaks.
- Flags to allow users to configure Pominal to their preferences.
- Graceful shutdown when a SIGINT or SIGTERM is sent to the application.
2019-05-30 22:19:53 +00:00
322ec7b8f0 Add LICENSE 2019-02-11 00:08:24 +00:00
3ef162cf35 Initial commit 2019-02-10 23:40:30 +00:00