Compare commits

..

10 Commits

Author SHA1 Message Date
Sasa Kocic ff9eb0704c update
continuous-integration/drone/push Build is passing Details
4 years ago
Sasa Kocic 6746b00382 update
4 years ago
Sasa Kocic b616b352fb trigger build
4 years ago
Sasa Kocic f4927a9aec trigger build
4 years ago
Sasa Kocic cbd2203290 trigger build
4 years ago
Sasa Kocic afa3e96853 trigger build
4 years ago
Sasa Kocic e827b2ab1e trigger build
4 years ago
Sasa Kocic a228d3a547 trigger build
4 years ago
Sasa Kocic 34b98a95e0 trigger build
4 years ago
Sasa Kocic e78f0ecdcc trigger build
4 years ago

@ -1,15 +1,20 @@
pipeline: kind: pipeline
build: name: build
image: python:3.10.1-slim-buster type: docker
commands:
- pip install --upgrade pip setuptools wheel steps:
- pip wheel -r requirements.txt --wheel-dir=wheeldir --find-links=wheeldir - name: test
- pip install --no-index --find-links=wheeldir -r requirements.txt image: python:3.10.1-slim-buster
- flake8 app commands:
- mkdir -p coverage - pip install --upgrade pip setuptools wheel
- pytest tests/ - pip wheel -r requirements.txt --wheel-dir=wheeldir --find-links=wheeldir
when: - pip install --no-index --find-links=wheeldir -r requirements.txt
event: - flake8 app
- tag - mkdir -p coverage
ref: - pytest tests/
- refs/tags/v*
trigger:
branch:
- master
event:
- push

@ -1,8 +1,6 @@
# Drone Test # Drone Test
[![Build Status](https://drone.itspektar.com/api/badges/root/drone-test/status.svg)](https://drone.itspektar.com/root/drone-test) [![Build Status](https://drone.itspektar.com/api/badges/root/drone-test/status.svg)](https://drone.itspektar.com/root/drone-test)
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
[![GitHub release](https://img.shields.io/github/release/go-gitea/gitea.svg)](https://github.com/go-gitea/gitea/releases/latest) [![GitHub release](https://img.shields.io/github/release/go-gitea/gitea.svg)](https://github.com/go-gitea/gitea/releases/latest)
[![Help Contribute to Open Source](https://www.codetriage.com/go-gitea/gitea/badges/users.svg)](https://www.codetriage.com/go-gitea/gitea) [![Help Contribute to Open Source](https://www.codetriage.com/go-gitea/gitea/badges/users.svg)](https://www.codetriage.com/go-gitea/gitea)
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)

@ -0,0 +1,8 @@
# test_hello.py
from app import app
def test_hello():
response = app.test_client().get('/')
assert response.status_code == 200
assert response.data == b'Hello, World!'
Loading…
Cancel
Save