Disabling compilation for tests, but only on CI #402
Unanswered
davidwessman
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Adding separate environment in One option would be to have |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I want to make sure that during CI, we only rely on the precompiled assets and not compiling anything when the tests are running.
However, when tests locally I would like it to recompile the assets to avoid testing with stale assets (since there is no forced precompilation like we do in CI).
I tried adding a separate
test_ci
environment in shakapacker.yaml but that did not work well.I have not been able to find any environment variable or such I can use, how would you go about this?
My config is very similar to this:
https://github.com/shakacode/shakapacker/blob/master/lib/install/config/shakapacker.yml#L106
Beta Was this translation helpful? Give feedback.
All reactions