summaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/checksetup_answers.txt4
-rw-r--r--.circleci/config.yml37
2 files changed, 39 insertions, 2 deletions
diff --git a/.circleci/checksetup_answers.txt b/.circleci/checksetup_answers.txt
index 80a1d40d2..bcdefa38e 100644
--- a/.circleci/checksetup_answers.txt
+++ b/.circleci/checksetup_answers.txt
@@ -1,11 +1,13 @@
$answer{'ADMIN_EMAIL'} = 'admin@mozilla.bugs';
$answer{'ADMIN_OK'} = 'Y';
-$answer{'ADMIN_PASSWORD'} = 'password';
+$answer{'ADMIN_PASSWORD'} = 'passWord1234!';
$answer{'ADMIN_REALNAME'} = 'QA Admin';
$answer{'NO_PAUSE'} = 1;
$answer{'bugzilla_version'} = '1';
$answer{'create_htaccess'} = '1';
$answer{'cvsbin'} = '/usr/bin/cvs';
+$answer{'password_complexity'} = 'bmo';
$answer{'diffpath'} = '/usr/bin';
$answer{'interdiffbin'} = '/usr/bin/interdiff';
$answer{'urlbase'} = 'http://<<HOSTNAME>>:8000/';
+$answer{'mail_delivery_method'} = 'Test';
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 619f1cb11..cd2ec0e10 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -120,13 +120,48 @@ jobs:
- store_artifacts:
path: /app/artifacts
+ test_bmo:
+ parallelism: 4
+ working_directory: /app
+ docker:
+ - <<: *bmo_slim_image
+ environment:
+ <<: *bmo_env
+ BZ_QA_ANSWERS_FILE: /app/.circleci/checksetup_answers.txt
+ TWD_HOST: localhost
+ TWD_PORT: 4444
+ TWD_BROWSER: firefox
+ - <<: *mysql_image
+ environment: *mysql_env
+ - image: memcached:latest
+ - image: selenium/standalone-firefox:2.53.1
+ steps:
+ - checkout
+ - run: |
+ mv /opt/bmo/local /app/local
+ perl checksetup.pl --no-database --default-localconfig
+ perl -MSys::Hostname -i -pE 's/<<HOSTNAME>>/hostname()/ges' $BZ_QA_ANSWERS_FILE
+ rm -f /app/localconfig
+ /app/scripts/entrypoint.pl load_test_data
+ mkdir artifacts
+ - run: |
+ BZ_BASE_URL="http://$(hostname):$PORT"
+ export BZ_BASE_URL
+ rm -f /app/localconfig
+ /app/scripts/entrypoint.pl test_bmo -q -f t/bmo/*.t
+
+
+
workflows:
version: 2
tests:
jobs:
+ - test_bmo
- test_sanity
- test_webservices
- - test_selenium
+ - test_selenium:
+ requires:
+ - test_bmo
- build:
requires:
- test_sanity