Files
OSIT-Mailman3/.circleci/config.yml
Abhilash Raj bfefd9fbc3 Update mailman-web to use Python 3 (For rolling releases) (#217)
* Update mailman-web to use Python 3

* Update configuration

* Python 3.6 image.

* Use alpine 3.7

* Use new style middleware

* Use alpine 3.6

* In Python 3, urlparse was renamed to urllib.parse
2018-03-07 23:22:47 -08:00

64 lines
1.3 KiB
YAML

version: '2'
jobs:
build:
docker:
- image: circleci/python:3
environment:
REGISTRY: QUAY
QUAY_URL: quay.io
steps:
- checkout
- setup_remote_docker
- run:
name: Setup Environment
command: source setup_env.sh
- run:
name: Install Docker Compose
command: sudo pip install docker-compose
- run:
name: Building Container Images
command: ./build.sh
- run:
name: Generate Tests
command: bash tests/generate_tests.sh
- run:
environment:
DB: postgres
name: Postgres Tests
command: bash tests/test.sh
- run:
environment:
DB: mysql
name: MySQL Test
command: bash tests/test.sh
- deploy:
environment:
REGISTRY: QUAY
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
bash .travis/deploy.sh
fi
workflows:
version: 2
commit-workflow:
jobs:
- build
scheduled-workflow:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only: master
jobs:
- build:
context: org-global
push-dev:
jobs:
- build:
context: org-global