1. 25 Jun, 2021 4 commits
    • Kevin Morris's avatar
      Improve Docker ecosystem · 5bd46d18
      Kevin Morris authored
      Instead of using Dockerfile for everything, we've introduced
      a docker-compose.yml file and kept the Dockerfile to producing
      a pure base image for the services defined.
      docker-compose services:
      - `mariadb` - Setup mariadb
      - `sharness` - Run sharness suites
      - `pytest-mysql` - Run pytest suites with MariaDB
      - `pytest-sqlite` - Run pytest suites with SQLite
      - `test` - Run all tests and produce a collective coverage report
          - This target mounts a cache volume and copies any successful
            coverage report back to `./cache/.coverage`. Users can run
            `./util/fix-coverage ./cache/.coverage` to rewrite source
            code paths and move coverage into place to view reports
            on your local system.
      == Get Started ==
      Build `aurweb:latest`.
          $ docker build -t aurweb:latest .
      Run all tests via `docker-compose`.
          $ docker-compose up test
      You can also purely run `pytest` in SQLite or MariaDB modes.
          $ docker-compose up pytest-sqlite
          $ docker-compose up pytest-mysql...
    • Kevin Morris's avatar
      test_db: remove user-configuration dependency · 3b8e3f3e
      Kevin Morris authored
      We should have been using a config that's stored in the
      repo all along.
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
    • Kevin Morris's avatar
      use aurweb_test for default mysql dev database · 8abb096d
      Kevin Morris authored
      This also updates `test/README.md` to be a bit more specific
      and precise with our current state of testing.
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
    • Kevin Morris's avatar
      add logging.config.fileConfig · 55c0637b
      Kevin Morris authored
      This resolves logging issues with alembic on aurweb.initdb
      in addition to adding more logging utilities for aurweb
      and tests in general.
      Developers should fetch a logger for their specific module
      via `logging.getLogger(__name__)`.
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
  2. 23 Jun, 2021 6 commits
  3. 22 Jun, 2021 1 commit
  4. 21 Jun, 2021 3 commits
  5. 19 Jun, 2021 8 commits
  6. 13 Jun, 2021 8 commits
  7. 12 Jun, 2021 9 commits
  8. 11 Jun, 2021 1 commit