-
Notifications
You must be signed in to change notification settings - Fork 1
How to Test Major Changes to CSS
Confirm similar or identical build output for project(s) on default branch versus the branch to test.
When checking out branches:
- If branch has change to dependency or version of dependency, then run
npm ci
.- If branch has change to
taccsite_custom
, then rungit submodule update
.
-
Clean out any previous testing you may have done with these steps.
git rm -rf taccsite_cms/static/site_cms/css/build-for-compare
-
Confirm CSS on default branch builds for
frontera-cms
.Follow default branch's instructions to build for Frontera CMS. (No need to
collectstatic
.) -
Copy build output to new directory, and stage the change with Git.
rm -rf taccsite_cms/static/site_cms/css/build-for-compare cp -r taccsite_cms/static/site_cms/css/build taccsite_cms/static/site_cms/css/build-for-compare git add taccsite_cms/static/site_cms/css/build-for-compare
-
Confirm CSS on new branch builds for
frontera-cms
.Follow new branch's instructions to build for Frontera CMS. (No need to
collectstatic
.) -
Replace that copied old build output with new build output (do not stage).
rm -rf taccsite_cms/static/site_cms/css/build-for-compare cp -r taccsite_cms/static/site_cms/css/build taccsite_cms/static/site_cms/css/build-for-compare
-
Compare the build outputs via
git status
.pwd # confirm you are at CMS repo root git status
-
Confirm you see only relevant staged changes.
- (via
git status
) You should see "Changes to be committed" forbuild-for-compare/
. - (via
git status
) You may see "Changes not staged for commit" forbuild-for-compare/
.
The test instructions that led you to this document will clarify whether you should see "Changes not staged for commit" (represents build output change) and if so, what should have changed. - (via
-
Clean out new branch's built CSS.
git rm -rf taccsite_cms/static/site_cms/css/build-for-compare npm ci
-
Confirm CSS on default branch builds for
core-cms
.Follow default branch's instructions to build for Frontera CMS. (No need to
collectstatic
.) -
Copy build output to new directory, and stage the change with Git.
rm -rf taccsite_cms/static/site_cms/css/build-for-compare cp -r taccsite_cms/static/site_cms/css/build taccsite_cms/static/site_cms/css/build-for-compare git add taccsite_cms/static/site_cms/css/build-for-compare
-
Confirm CSS new branch builds for
core-cms
.Follow new branch's instructions to build for Frontera CMS. (No need to
collectstatic
.) -
Replace that copied old build output with new build output (do not stage).
rm -rf taccsite_cms/static/site_cms/css/build-for-compare cp -r taccsite_cms/static/site_cms/css/build taccsite_cms/static/site_cms/css/build-for-compare
-
Compare the build outputs via
git status
.git status
-
Confirm you see only staged changes.
- (via
git status
) You should see "Changes to be committed" forbuild-for-compare/
. - (via
git status
) You may see "Changes not staged for commit" forbuild-for-compare/
.
The test instructions that led you to this document will clarify whether you should see "Changes not staged for commit" (represents build output change) and if so, what should have changed. - (via
-
Repeat as desired for each project.
TACC ACI WMA Core-CMS Project Documentation