Skip to content

Commit 3ffc8a8

Browse files
authored
Merge pull request #23 from EasyCTF/feature/travis-ci-setup
Create .travis.yml
2 parents 7ffaf2a + 49c014a commit 3ffc8a8

File tree

6 files changed

+25
-0
lines changed

6 files changed

+25
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
.env
55
.secret_key
66
npm-debug.log
7+
.coverage
8+
.cache

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
install:
5+
- sudo apt-get update
6+
- sudo apt-get -y install python python-dev python-pip
7+
- pip install -r requirements.txt
8+
- pip install coveralls
9+
before_script:
10+
- psql -c 'create database ctfcal;' -U postgres
11+
services:
12+
- postgresql
13+
script:
14+
- coverage run --source . -m pytest -v && coverage report
15+
after_success:
16+
coveralls
17+
notifications:
18+
email: false

conftest.py

Whitespace-only changes.

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ passlib
1313
pathlib
1414
psycopg2
1515
pymysql
16+
pytest
1617
python-dotenv
1718
sqlalchemy
1819
wtforms

tests/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# hei

tests/test_general.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class TestGeneral():
2+
def test_sanity(self):
3+
assert "sanity level" > 0

0 commit comments

Comments
 (0)