|
7 | 7 | .node_anchors: |
8 | 8 | # `only` (also used for `except` where applicable) |
9 | 9 | only_branch_master_parent_repo: &only_branch_master_parent_repo |
10 | | - - 'master@saltstack-formulas/template-formula' |
| 10 | + - 'master@saltstack-formulas/caddy-formula' |
11 | 11 | # `stage` |
12 | 12 | stage_lint: &stage_lint 'lint' |
13 | 13 | stage_release: &stage_release 'release' |
@@ -55,7 +55,7 @@ commitlint: |
55 | 55 | script: |
56 | 56 | # Add `upstream` remote to get access to `upstream/master` |
57 | 57 | - 'git remote add upstream |
58 | | - https://gitlab.com/saltstack-formulas/template-formula.git' |
| 58 | + https://gitlab.com/saltstack-formulas/caddy-formula.git' |
59 | 59 | - 'git fetch --all' |
60 | 60 | # Set default commit hashes for `--from` and `--to` |
61 | 61 | - 'export COMMITLINT_FROM="$(git merge-base upstream/master HEAD)"' |
@@ -124,62 +124,13 @@ rubocop: |
124 | 124 | .test_instance_failure_permitted: |
125 | 125 | <<: *test_instance |
126 | 126 | allow_failure: true |
127 | | -# <REMOVEME |
128 | | - |
129 | | -############################################################################### |
130 | | -# Define `test_conversion` template |
131 | | -############################################################################### |
132 | | -.test_conversion: |
133 | | - stage: *stage_test |
134 | | - image: *image_dindrubybionic |
135 | | - services: *services_docker_dind |
136 | | - variables: *variables_bundler |
137 | | - cache: *cache_bundler |
138 | | - before_script: |
139 | | - - 'export CONVERTED=test-the-use_this_template-button' |
140 | | - - 'git clone . /tmp/"${CONVERTED}"-formula' |
141 | | - - 'cd /tmp/"${CONVERTED}"-formula' |
142 | | - # Limit the version of `node` used by `pre-commit`, to avoid the following error: |
143 | | - # .../bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found |
144 | | - - 'echo "default_language_version:" >> .pre-commit-config.yaml' |
145 | | - - 'echo " node: 16.14.2" >> .pre-commit-config.yaml' |
146 | | - # Install `pre-commit` hooks |
147 | | - - 'bin/install-hooks' |
148 | | - # Run the conversion script with debug output |
149 | | - - 'DEBUG=true bin/convert-formula.sh "${CONVERTED}"' |
150 | | - - '[ $(git rev-list HEAD --count) -eq 2 ]' |
151 | | - # Quick visual check that correct files have been updated |
152 | | - - 'git show --pretty="" --name-status' |
153 | | - # TODO: This should work from the env vars above automatically |
154 | | - - 'bundle config set path "${BUNDLE_CACHE_PATH}"' |
155 | | - - 'bundle config set without "${BUNDLE_WITHOUT}"' |
156 | | - - 'bundle update --bundler --conservative' |
157 | | - - 'bundle binstubs bundler --force' |
158 | | - - 'PATH=./bin:"$PATH" bundle install' |
159 | | - script: |
160 | | - - 'bin/kitchen verify default-debian-11-master-py3' |
161 | | -# REMOVEME> |
162 | 127 |
|
163 | 128 | ############################################################################### |
164 | 129 | # `test` stage: each instance below uses the `test` template above |
165 | 130 | ############################################################################### |
166 | 131 | ## Define the rest of the matrix based on Kitchen testing |
167 | 132 | # Make sure the instances listed below match up with |
168 | 133 | # the `platforms` defined in `kitchen.yml` |
169 | | -# <REMOVEME |
170 | | -# NOTE: Please try to select up to six instances that add some meaningful |
171 | | -# testing of the formula's behaviour. If possible, try to refrain from |
172 | | -# the classical "chosing all the instances because I want to test on |
173 | | -# another/all distro/s" trap: it will just add time to the testing (see |
174 | | -# the discussion on #121). As an example, the set chosen below covers |
175 | | -# the most used distros families, systemd and non-systemd and the latest |
176 | | -# three supported Saltstack versions with python2 and 3. |
177 | | -# As for `kitchen.yml`, that should still contain all of the platforms, |
178 | | -# to allow for comprehensive local testing |
179 | | -# Ref: https://github.com/saltstack-formulas/template-formula/issues/118 |
180 | | -# Ref: https://github.com/saltstack-formulas/template-formula/issues/121 |
181 | | -test-formula-conversion: {extends: '.test_conversion'} |
182 | | -# REMOVEME> |
183 | 134 | # yamllint disable rule:line-length |
184 | 135 | # default-debian-11-tiamat-py3: {extends: '.test_instance'} |
185 | 136 | # default-debian-10-tiamat-py3: {extends: '.test_instance'} |
|
0 commit comments