Added Concourse CI files

This commit is contained in:
lomion 2021-03-12 20:23:52 +01:00
parent 2d40cd9444
commit 3c4a313970
2 changed files with 34 additions and 0 deletions

31
concourse.yml Normal file
View file

@ -0,0 +1,31 @@
---
resources:
- name: git-repo
type: git
source:
uri: https://codeberg.org/lomion/tmdb-bot
branch: develop
- name: python-image
type: registry-image
icon: docker
source:
repository: python
tag: 3
jobs:
- name: unittests
public: true
plan:
- get: git-repo
trigger: true
- get: python-image
- task: run_tests
image: python-image
config:
platform: linux
inputs:
- name: git-repo
run:
dir: git-repo
path: ./runtests.sh

3
runtests.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
pip3 install -r requirements.txt
python3 test_tmdb.py