Remove unused files (#516)

This commit is contained in:
Abhilash Raj
2021-09-23 13:06:48 -07:00
committed by GitHub
parent 9d9a627f72
commit 4b038c57d4
2 changed files with 0 additions and 66 deletions

View File

@@ -1,27 +0,0 @@
sudo: required
services:
- docker
language: python
env:
- DB=postgres
- DB=mysql
- DEV=true
install:
- docker --version && python --version
- sudo pip install docker-compose
- source setup_env.sh
- ./build.sh
- docker-compose --version
before_script:
- sh tests/generate_tests.sh
script:
- sh tests/test.sh
after_script:
- docker-compose down

39
test.py
View File

@@ -1,39 +0,0 @@
#!/usr/bin/env python3
import sys
from pathlib import Path
from build import VARIANTS
DOCKER_TEST="""version: '2'
services:
mailman-core:
image: core-{variant}
mailman-web:
image: web-{variant}
environment:
- SECRET_KEY=abcdefghijklmnopqrstuv
"""
def test_setup(variant):
Path('docker-test.yaml').write_text(
DOCKER_TEST.format(variant=variant))
def usage():
print('usage: python test.py (stable|rolling)')
if __name__ == '__main__':
if len(sys.argv) < 2:
usage()
sys.exit(1)
variant = sys.argv[1]
if variant not in VARIANTS:
usage()
sys.exit(1)
test_setup(variant)