Merge pull request #24 from grant-project/travis-ci

Travis CI
This commit is contained in:
Daniel Ternyak 2018-09-11 15:32:06 -05:00 committed by GitHub
commit e92be02314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

31
.travis.yml Normal file
View File

@ -0,0 +1,31 @@
matrix:
include:
# Frontend
- language: node_js
node_js: 8.11.4
before_install:
- cd frontend/
install: yarn
script:
- yarn run lint
- yarn run tsc
# Backend
- language: python
python: 3.6
before_install:
- cd backend/
- cp .env.example .env
install: pip install -r requirements/dev.txt
script:
- flask test
# Contracts
- language: node_js
node_js: 8.11.4
before_install:
- cd contract/
install: yarn && yarn add global truffle ganache-cli
before_script:
- ganache-cli > /dev/null &
- sleep 10
script:
- yarn run test

View File

@ -0,0 +1,4 @@
"""Sample test for CI"""
def test_runs():
assert True