Граф коммитов

27 Коммитов

Автор SHA1 Сообщение Дата
Paweł Gronowski 21b3f00cd9
Makefile: Ignore SC2329
In previous versions of shellcheck, SC2317 was emitted for every line of
a unused function and we're ignoring the SC2317 completely:
6e61729e66/Makefile (L6)

We were ignoring this error due to `version_compare` being reported as a
false positive.

After
4f81dbe839
this was fixed and now it produces one `SC2329` for the whole function
instead of multiple SC2137.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-05-09 13:50:12 +02:00
Paweł Gronowski 195cc06fd8
shellcheck: Use stable version
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-05-09 13:26:38 +02:00
Sebastiaan van Stijn f529a2b4c2
Makefile: update default test image to ubuntu 22.04
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-03-28 19:00:15 +02:00
Sebastiaan van Stijn 0f72df0a14
shellcheck: ignore SC2317
This check gives a lot of false positives; ignoring it;

```
In build/install.sh line 106:
	set +x
        ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 108:
	yy_a="$(echo "$1" | cut -d'.' -f1)"
        ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
                ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 109:
	yy_b="$(echo "$2" | cut -d'.' -f1)"
        ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
                ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 110:
	if [ "$yy_a" -lt "$yy_b" ]; then
        ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
           ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 111:
		return 1
                ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 113:
	if [ "$yy_a" -gt "$yy_b" ]; then
        ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
           ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 114:
		return 0
                ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 116:
	mm_a="$(echo "$1" | cut -d'.' -f2)"
        ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
                ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 117:
	mm_b="$(echo "$2" | cut -d'.' -f2)"
        ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
                ^-----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 118:
	if [ "${mm_a#0}" -lt "${mm_b#0}" ]; then
        ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
           ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 119:
		return 1
                ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 122:
	return 0
        ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

In build/install.sh line 659:
	exit 1
        ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

For more information:
  https://www.shellcheck.net/wiki/SC2317 -- Command appears to be unreachable...
make: *** [Makefile:20: shellcheck] Error 1
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-08-25 22:13:47 +02:00
Eli Uriegas 13623a6a08
Change enbsubst to substitute for new COMMIT_SHA var
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-07-15 20:27:13 +00:00
Eli Uriegas 67086425e1
ci: Update addprefix to add another `$`
the envsubst wasn't working correctly on ubuntu due to the `$` getting
stripped by make during the `addprefix`

Should now work correctly no matter what distribution you're on

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-07-15 20:17:39 +00:00
Eli Uriegas dde1dc2b87
Simplify CI, it was too complicated
Simplifies CI to run through a simple `make test` target that has an
underlying `TEST_IMAGE` variable which determines the distribution to
run on.

Also changes the Jenkinsfile to be declarative since the old one kind of
sucked.

Also adds a test for version pinning since that's something we rely on a
lot.

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-07-15 19:09:20 +00:00
Sebastiaan van Stijn 78d97fc35f Add Fedora 29, and remove Fedora < 28
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-11-28 22:30:58 +00:00
Roman Mueller df3f782f22 Remove Ubuntu Artful since it is end of life.
Signed-off-by: Roman Mueller <roman.mueller@gmail.com>
2018-11-27 12:51:54 +01:00
Eli Uriegas 27d15c5a86 Remove Fedora 25 from testing cycles
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-03-06 01:09:11 +00:00
Eli Uriegas efeeb89fea Add VERSION pinning to the installation script
VERSION pinning is something that people have been asking for, for a
while so this attempts to add that in.

Should work in most scenarios aside from incomplete VERSIONS.

IE: If you have the `test` channel enabled and try to install `17.12`
for example, the script will instead try to install rc2 since that is
the latest VERSION in the results.

Should also work with nightly builds like pinning to a date, or a
specific git SHA

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-02-23 23:30:23 +00:00
Eli Uriegas 6e0d893483 Removes Ubuntu Zesty from testing pipeline
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-01-24 22:35:15 +00:00
Eli Uriegas c4663474de Add debian buster to install script
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-11-13 20:45:53 +00:00
Eli Uriegas 8029a2f593 Add temporary Ubuntu Artful support
Adds temporary support for Ubuntu Artful while we wait to get packages
up, after we do get packages up we should delete the lines denoted

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-10-24 10:10:41 -07:00
Corbin b41b863ddd Add ppc64le verify to install, Makefile, and Jenkinsfile
Signed-off-by: Corbin <corbin.coleman@docker.com>
2017-09-27 16:34:19 -07:00
Eli Uriegas 018683f183 Removes Fedora 24, reached EOL, adds Fedora 26
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-08-31 14:04:49 -07:00
Eli Uriegas f4956497c1 Add shellcheck, disable trusty armhf test
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-08-29 17:38:42 -07:00
Eli Uriegas d0e4b1fe59 Adds support for raspbian stretch
Basically uses the jessie repo for raspbian stretch due to raspbian
jessie download links being taken off the official raspbian site.

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-08-29 15:17:56 -07:00
Eli Uriegas 9eaa939397 Update verification targets to include arch
Ran into an issue with the jenkins build with archiving artifacts. Chose
to remedy this by naming all of the potential artifacts with the same
pattern

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-07-27 15:55:43 -07:00
Eli Uriegas 93b1990604 Updates for 17.07.0-ce-rc1
Major Notes:

* Removes old raspbian cruft now that raspbian has a repo on
download.docker.com
* Adds a support matrix so that we can have an easier time updating
what architectures/distros we support
* Added support for s390x and aarch64
* Had to change add-apt-repository to an echo into a file, was not
functioning correctly on raspbian see moby/moby#31405
* Update testing pipeline for multiarch
* Removed deprecation warnings for raspbian

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-07-27 10:24:02 -07:00
Eli Uriegas def4691870 Removes version and git commit verification
The install script won't be updated every single time a release is done
so it does not make sense to tie the verification jobs to specific
versions / git commits.

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-07-25 11:02:07 -07:00
Eli Uriegas 00e526359b Make testing working again!
.log files didn't work correctly when evaluating possible docker images
to run so I removed the suffix portion. Also made it easier to run for
specific distros ala:

`make DISTROS="fedora-25 fedora-24 centos-7" CHANNEL_TO_TEST=edge EXPECTED_VERSION="17.06.0-ce" EXPECTED_GITCOMMIT="02c1d87" clean check`

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-07-18 14:31:49 -07:00
Andrew Hsu b39937bd14 add shellcheck make target
Shell linter: https://github.com/koalaman/shellcheck

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-07-11 00:37:08 +00:00
Andrew Hsu 006a30aa83 execute verify-docker-install straight-up to use setopt
By executing `bash verify-docker-install`, the `bash -e` at the top of
the script is not honored. Should just execute the script straight-up
to use whatever `set` options are desired in the script.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-07-09 17:43:01 +00:00
Eli Uriegas 32dae208ce Make test channel configurable by env variable
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-06-19 15:53:29 -07:00
Eli Uriegas 4dda1740e9 Add ways to test other channels
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-06-16 15:35:49 -07:00
Eli Uriegas de9757bd6b Add testing infrastructure
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-06-16 13:44:32 -07:00