Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bundle_certs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
bundle_certs
Commits
4f9e40ca
Commit
4f9e40ca
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Migrate from Travis CI to GitLab CI.
Also, update pre-commit hooks.
parent
98c05383
No related branches found
No related tags found
No related merge requests found
Pipeline
#257
passed with warnings
4 years ago
Stage: test
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+24
-0
24 additions, 0 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+24
-14
24 additions, 14 deletions
.pre-commit-config.yaml
.travis.yml
+2
-2
2 additions, 2 deletions
.travis.yml
README.rst
+11
-8
11 additions, 8 deletions
README.rst
test.bats
+0
-2
0 additions, 2 deletions
test.bats
with
61 additions
and
26 deletions
.gitlab-ci.yml
0 → 100644
+
24
−
0
View file @
4f9e40ca
---
stages
:
-
test
pre-commit
:
stage
:
test
image
:
adarnimrod/ci-images:pre-commit
variables
:
XDG_CACHE_HOME
:
"
$CI_PROJECT_DIR/.cache"
script
:
-
pre-commit run --all-files
cache
:
paths
:
-
.cache/
test
:
stage
:
test
image
:
buildpack-deps:bullseye
allow_failure
:
true
before_script
:
-
apt-get update
-
apt-get install -y bats
script
:
-
bats .
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
24
−
14
View file @
4f9e40ca
---
repos
:
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
sha
:
v1.2.3
rev
:
v3.4.0
hooks
:
hooks
:
-
id
:
check-added-large-files
-
id
:
check-added-large-files
-
id
:
check-
yaml
-
id
:
check-
executables-have-shebangs
-
id
:
check-merge-conflict
-
id
:
check-merge-conflict
-
id
:
check-symlinks
-
id
:
detect-private-key
-
id
:
trailing-whitespace
-
id
:
trailing-whitespace
-
repo
:
https://github.com/adarnimrod/shell-pre-commit
-
repo
:
https://github.com/adarnimrod/shell-pre-commit
sha
:
v0.6.0
rev
:
v0.6.0
hooks
:
hooks
:
-
id
:
shell-lint
-
id
:
shell-lint
-
id
:
shellcheck
-
id
:
shellcheck
-
repo
:
https://github.com/myint/rstcheck
rev
:
master
hooks
:
-
id
:
rstcheck
-
repo
:
https://github.com/adrienverge/yamllint
rev
:
v1.25.0
hooks
:
-
id
:
yamllint
This diff is collapsed.
Click to expand it.
.travis.yml
+
2
−
2
View file @
4f9e40ca
This diff is collapsed.
Click to expand it.
README.rst
+
11
−
8
View file @
4f9e40ca
bundle-certs
bundle-certs
############
############
.. image:: https://travis-ci.org/adarnimrod/bundle_certs.svg?branch=master
.. image:: https://git.shore.co.il/nimrod/bundle_certs/badges/master/pipeline.svg
:target: https://travis-ci.org/adarnimrod/bundle_certs
:target: https://git.shore.co.il/nimrod/bundle_certs/-/commits/master
:alt: pipeline status
A shell script to bundle SSL certificates in the correct order. The use case
A shell script to bundle SSL certificates in the correct order. The use case
envisioned is programmatically handling SSL certificate renewal.
envisioned is programmatically handling SSL certificate renewal.
...
@@ -28,8 +29,8 @@ For regular use:
...
@@ -28,8 +29,8 @@ For regular use:
For testing/ development purposes, all of the above, plus:
For testing/ development purposes, all of the above, plus:
-
`
Bats
<https://github.com/sstephenson/bats>`_.
- Bats
_
-
`
Pre-commit
<http://pre-commit.com/>`_.
- Pre-commit
_
Usage
Usage
-----
-----
...
@@ -61,9 +62,8 @@ Shell functions
...
@@ -61,9 +62,8 @@ Shell functions
Development and testing
Development and testing
-----------------------
-----------------------
Testing is done using Bats <https://github.com/sstephenson/bats>`_. To test run
Testing is done using Bats_. To test run :code:`bats test.bats`. Pre-commit_ is
:code:`bats test.bats`. `Pre-commit <http://pre-commit.com/>`_ is also
also configured for this repo.
configured for this repo.
License
License
-------
-------
...
@@ -77,4 +77,7 @@ Author Information
...
@@ -77,4 +77,7 @@ Author Information
Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website
Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website
<https://www.shore.co.il/>`_. Patches are welcome via `git send-email
<https://www.shore.co.il/>`_. Patches are welcome via `git send-email
<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located
<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located
at: https://www.shore.co.il/cgit/.
at: https://git.shore.co.il/explore/.
.. _Bats: https://github.com/sstephenson/bats
.. _Pre-commit: https://pre-commit.com/
This diff is collapsed.
Click to expand it.
test.bats
100755 → 100644
+
0
−
2
View file @
4f9e40ca
#!/usr/bin/env bats
setup () {
setup () {
teardown
teardown
mkdir -p .testcerts
mkdir -p .testcerts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment