]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - Do not create qa data if not running qa tests
authordklawren <dklawren@users.noreply.github.com>
Wed, 3 Jul 2019 17:11:49 +0000 (13:11 -0400)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2019 17:11:49 +0000 (13:11 -0400)
.circleci/config.yml
scripts/entrypoint.pl

index e683f9842070dd1f20a9817762aa042336c70ccc..1492610ae1d76e2d156deb271fbd69559bbc8e88 100644 (file)
@@ -53,6 +53,7 @@ defaults:
         <<: *bmo_env
         BZ_QA_CONF_FILE: /app/.circleci/selenium_test.conf
         BZ_QA_ANSWERS_FILE:  /app/.circleci/checksetup_answers.txt
+        BZ_QA_CONFIG: 1
     - <<: *mysql_image
       environment: *mysql_env
     - <<: *selenium_firefox_image
@@ -173,7 +174,8 @@ jobs:
       - <<: *bmo_slim_image
         environment: *bmo_env
     steps:
-      - checkout
+      - run: |
+          mkdir -p /app && cd /tmp/_circleci_local_build_repo && git ls-files -z | xargs -s 2091853 -0 tar -c | tar -x -C /app && cp -a /tmp/_circleci_local_build_repo/.git /app
       - attach_workspace:
           at: /app/build_info
       - run: |
index e9700df15df713083787920cd93c614adfb020c0..b3b166644bdedebc7f34c1ff9baefe706a758ca4 100755 (executable)
@@ -142,9 +142,12 @@ sub cmd_load_test_data {
     '--param',     'use_mailer_queue=0'
   );
 
-  chdir '/app/qa/config';
-  say 'chdir(/app/qa/config)';
-  run('perl', 'generate_test_data.pl');
+  if ($ENV{BZ_QA_CONFIG}) {
+    chdir '/app/qa/config';
+    say 'chdir(/app/qa/config)';
+    run('perl', 'generate_test_data.pl');
+    chdir '/app';
+  }
 }
 
 sub cmd_test_webservices {