From aa737dad19554e39b1179f97b33b5048ab605024 Mon Sep 17 00:00:00 2001 From: Chunlin Zhang Date: Wed, 23 Oct 2019 18:15:26 +0800 Subject: [PATCH 1/5] travis: add Travis CI configuration --- .travis.yml | 7 +++++++ tests/requirements.txt | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 .travis.yml create mode 100755 tests/requirements.txt diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..61bf783 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python +python: + - "3.6" + - "3.7" +sudo: required +before_install: sudo pip install -r tests/requirements.txt +script: cd tests;nosetests --with-doctest diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100755 index 0000000..38ec5e8 --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,5 @@ +nose +six +SQLAlchemy +-e git+https://github.com/limodou/uliweb3#egg=uliweb3 +../ From 612c377d3a9889d6cc637ea9a2cd654884e2394d Mon Sep 17 00:00:00 2001 From: Chunlin Zhang Date: Wed, 23 Oct 2019 18:18:24 +0800 Subject: [PATCH 2/5] travis: fix 'Directory u'../' is not installable' --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 61bf783..280ddb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,5 @@ python: - "3.6" - "3.7" sudo: required -before_install: sudo pip install -r tests/requirements.txt +before_install: cd tests;sudo pip install -r requirements.txt script: cd tests;nosetests --with-doctest From 044f9a48a06ab8cae023949a339ecf4a325d6871 Mon Sep 17 00:00:00 2001 From: Chunlin Zhang Date: Wed, 23 Oct 2019 18:22:30 +0800 Subject: [PATCH 3/5] travis: travis use virtualenv, so don't need sudo --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 280ddb8..bb48c78 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,5 @@ language: python python: - "3.6" - "3.7" -sudo: required -before_install: cd tests;sudo pip install -r requirements.txt +before_install: cd tests;pip install -r requirements.txt script: cd tests;nosetests --with-doctest From 678aa2e73c7f98cc2a84aad566b3e394a073f91a Mon Sep 17 00:00:00 2001 From: Chunlin Zhang Date: Wed, 23 Oct 2019 18:24:21 +0800 Subject: [PATCH 4/5] travis: don't need to cd to tests dir again --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bb48c78..e7082c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,4 @@ python: - "3.6" - "3.7" before_install: cd tests;pip install -r requirements.txt -script: cd tests;nosetests --with-doctest +script: nosetests --with-doctest From b0ec28f61aaa0fe294978a833f9ebe5f16b059cc Mon Sep 17 00:00:00 2001 From: Chunlin Zhang Date: Wed, 23 Oct 2019 18:31:46 +0800 Subject: [PATCH 5/5] travis: add build status in README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2944d28..12e37e9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/zhangchunlin/uliweb-apijson.svg?branch=master)](https://travis-ci.org/zhangchunlin/uliweb-apijson) + uliweb-apijson is a subset and slightly different variation of [apijson](https://github.com/TommyLemon/APIJSON/blob/master/Document.md) You can try: