109 Commits
Author SHA1 Message Date
Jose Diaz-Gonzalez b8329d76ec tests: add support for running golangci-lint automatically
The plugin paths must be computed at execution because not all plugins contain golang code.
2024-01-17 02:28:11 -05:00
Jose Diaz-Gonzalez 17e88da2dc fix: install docker-compose-plugin in ci
This used to be installed as moby-compose in Github Runners but they switched to the docker apt repo and don't install the plugin from the apt repository as it is outdated so we have to do it ourselves.
2023-08-26 14:33:07 -04:00
Jose Diaz-Gonzalez 5846301a48 tests: make it possible to specify an alternative base domain for tests
When developing Dokku, it is useful to use a real domain to test actual functionality. This is impossible if the domain is hardcoded to dokku.me in testing.
2023-08-05 20:58:26 -04:00
Jose Diaz-Gonzalez ef25a9b0d8 refactor: standardize on shorthand for redirecting all output to /dev/null
The shorthand is more prevalent in this codebase, and is something that bash supports, so we should just use the same thing everywhere.

Note that we do not use shorthand redirect in Makefile as shell parsing is a bit different in Make and the shorthand redirect doesn't seem to be properly supported, causing CI errors.
2023-08-05 10:58:57 -04:00
Jose Diaz-Gonzalez dac566e75e refactor: move all shellcheck disable definitions to .shellcheckrc file
This makes standard use of shellcheck work without needing to provide extra configuration anywhere.

Also remove use of inline 'shellcheck disable' calls that are already defined in the .shellcheckrc and don't need to be set inline.
2023-08-05 10:58:57 -04:00
Jose Diaz-Gonzalez 21947837c3 fix: use correct path within the ssl tarballs
Also add a command to help automate the generation of the certificates in the future.
2023-01-16 01:50:52 -05:00
Jose Diaz-Gonzalez edd0b16975 fix: install goverage via go get 2022-11-07 16:11:38 -05:00
Jose Diaz-Gonzalez 4a7edc234a feat: add debugging and use go get to grab godacov 2022-11-02 15:45:33 -04:00
Jose Diaz-Gonzalez 42cd2ae4bc fix: switch to go install from go get
This no longer works as of go 1.18: https://go.dev/doc/go-get-install-deprecation
2022-11-02 11:57:22 -04:00
Jose Diaz-Gonzalez a39a47b3ae feat: respect TARGETARCH when installing development dependencies 2022-10-12 21:53:11 -04:00
Jose Diaz-Gonzalez a7465f9d81 tests: use github actions instead of circleci for test running 2021-01-20 14:00:07 -05:00
Jose Diaz-Gonzalez e4ec973a6e Merge pull request #4329 from dokku/apt-no-install-recommends
Standardize apt-get usage
2021-01-18 12:12:11 -05:00
Jose Diaz-Gonzalez ed84f21c08 refactor: standardize apt-get usage
- Always put flags in same location
- Always use apt-get
- Add --no-install-recommends where possible
2021-01-17 20:19:56 -05:00
Jose Diaz-Gonzalez 1dc63eecbd tests: switch to upstream bats-core
Bats core now has junit report formatting, so there is no need to continue using a fork.
2021-01-17 16:18:24 -05:00
Jose Diaz-Gonzalez f53b26f3f0 tests: update junit test files when a bats retry is successful 2020-12-20 17:26:27 -05:00
Jose Diaz-Gonzalez 465e220315 feat: retry failing and skipped tests once
Plugn is fairly brittle since the upgrade to bash 5, so this might help decrease the need to retry the whole circleci job.
2020-12-20 02:42:37 -05:00
Kazuhiro NISHIYAMA 98c81513aa Accept first pushed branch as deploy-branch
And set to DOKKU_DEPLOY_BRANCH.

Idea from https://github.com/dokku/dokku/pull/4167#issuecomment-717607136
2020-12-08 23:15:11 +09:00
Jose Diaz-Gonzalez 3f4b0eccd8 refactor: call tests while in directories
They fail to be listed in go list after the gomodules move.
2020-06-28 13:59:08 -04:00
Jose Diaz-Gonzalez 9dbc352006 chore: turn on go mod 2020-06-28 01:42:09 -04:00
Jose Diaz-Gonzalez 9d6746001e chore: revert 2020-06-20 00:28:30 -04:00
Jose Diaz-Gonzalez 0b9cecef4d tests: move testing command into config 2020-06-19 23:24:03 -04:00
Jose Diaz-Gonzalez 6d4d8a89ed fix: correct test logging output 2020-06-19 22:01:13 -04:00
Jose Diaz-Gonzalez 3c56a0c323 tests: modify to allow better running under github actions 2020-06-19 22:01:13 -04:00
Jose Diaz-Gonzalez 03f8922ffd chore: remove all debugging code 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez b9cc89e4d2 fix: set correct perms on files 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez fb4a232537 debug: exit separately 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez cf35cedd1e debug: show auth log 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez 2919415d7e fix: set correct perms for ssh key files 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez ee083eb3c3 debug: list file permissions 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez 88e01d8a4b debug: more logging 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez a8fd8d1b19 debug: more logging 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez f47a267917 debug: echo empty 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez bf7e86fb13 fix: drop existing key 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez 1cab6acf69 fix: drop unnecessary cat 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez 75a2d3a1ba debug: more test logging 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez ca248a62ec debug: more logging 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez b50590e2ad debug: fix debug statements 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez db253c15cc feat: cat the contents 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez d60140dad8 debug: check if there is extra output 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez 329e97c8ee feat: drop support for unsupported Debian and Ubuntu releases
While the latest packages may continue to work on other releases, we will no longer officially support these releases, nor will we distribute packages.
2020-02-28 05:57:55 -05:00
Jose Diaz-Gonzalez e19b52442b fix: remove deprecated egrep calls from codebase 2020-02-17 05:59:52 -05:00
Jose Diaz-Gonzalez 848373def5 chore: remove all deprecated commands
This change removes all deprecated commands. In many cases, users have been warned for a number of releases before the commands have been removed. All commands that were removed have existing alternatives.
2020-02-12 02:03:03 -05:00
Michael Hobbs b8c2259775 test docker image 2019-07-18 00:28:48 -04:00
Michael Hobbs 1437b77c6c run tests against native dokku 2019-07-18 00:28:48 -04:00
Michael Hobbs f723333a90 don't run shfmt in CI 2019-07-18 00:26:31 -04:00
Michael Hobbs d8ada6a6e9 install dokku from built deb package and use docker image for integrations tests 2019-07-18 00:26:31 -04:00
Jose Diaz-Gonzalez beef464cc1 fix: only uncomment port for sshd-config 2019-04-08 13:42:01 -04:00
Jose Diaz-Gonzalez 6cc6d5a33f fix: correct port application during local tests 2019-04-08 13:22:40 -04:00
Jose Diaz-Gonzalez ff945c64fe fix: correct local test running 2019-04-08 13:18:28 -04:00
Jose Diaz-Gonzalez 67ae374e60 lint: remove whitespaces before redirect 2019-02-02 13:49:24 -05:00