fix: Use sed in pipeline
parent
9333e8518b
commit
1acf0eee19
|
@ -7,7 +7,7 @@ jest.setTimeout(20000);
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
// Disable importOnBootstrap
|
// Disable importOnBootstrap
|
||||||
await exec('sed -i "s/importOnBootstrap: true/importOnBootstrap: false/g" config/plugins.js');
|
await exec('gsed -i "s/importOnBootstrap: true/importOnBootstrap: false/g" config/plugins.js');
|
||||||
|
|
||||||
await cleanupStrapi();
|
await cleanupStrapi();
|
||||||
await exec('rm -rf config/sync');
|
await exec('rm -rf config/sync');
|
||||||
|
@ -20,7 +20,7 @@ describe('Test the importOnBootstrap feature', () => {
|
||||||
await exec('rm -rf .tmp');
|
await exec('rm -rf .tmp');
|
||||||
|
|
||||||
// Manually change the plugins.js to enable importOnBoostrap.
|
// Manually change the plugins.js to enable importOnBoostrap.
|
||||||
await exec('sed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js');
|
await exec('gsed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js');
|
||||||
|
|
||||||
// Start up Strapi to initiate the importOnBootstrap function.
|
// Start up Strapi to initiate the importOnBootstrap function.
|
||||||
await setupStrapi();
|
await setupStrapi();
|
||||||
|
@ -34,7 +34,7 @@ describe('Test the importOnBootstrap feature', () => {
|
||||||
await exec('yarn cs export -y');
|
await exec('yarn cs export -y');
|
||||||
|
|
||||||
// Manually change the plugins.js to enable importOnBoostrap.
|
// Manually change the plugins.js to enable importOnBoostrap.
|
||||||
await exec('sed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js');
|
await exec('gsed -i "s/importOnBootstrap: false/importOnBootstrap: true/g" config/plugins.js');
|
||||||
|
|
||||||
// Remove a config file to make sure the importOnBoostrap
|
// Remove a config file to make sure the importOnBoostrap
|
||||||
// function actually attempts to import.
|
// function actually attempts to import.
|
||||||
|
|
Loading…
Reference in New Issue