Commit 844166ccaf72db24ff7c3cac318c7e0f0951361d
1 parent
376c1057
Exists in
master
and in
39 other branches
flake8 checks and coverage reports
Showing
5 changed files
with
14 additions
and
12 deletions
Show diff stats
.travis.yml
@@ -7,7 +7,7 @@ env: | @@ -7,7 +7,7 @@ env: | ||
7 | - DJANGO_VERSION=1.7.3 | 7 | - DJANGO_VERSION=1.7.3 |
8 | 8 | ||
9 | install: | 9 | install: |
10 | - - pip install -r requirements_test.txt | 10 | + - pip install -r requirements_dev.txt |
11 | - pip install django==${DJANGO_VERSION} | 11 | - pip install django==${DJANGO_VERSION} |
12 | - pip install -e . | 12 | - pip install -e . |
13 | - colab-init-config > settings.yaml | 13 | - colab-init-config > settings.yaml |
@@ -15,11 +15,11 @@ install: | @@ -15,11 +15,11 @@ install: | ||
15 | - sudo cp settings.yaml /etc/colab/ | 15 | - sudo cp settings.yaml /etc/colab/ |
16 | - psql -c "CREATE USER colab WITH PASSWORD 'colab' CREATEDB;" -U postgres | 16 | - psql -c "CREATE USER colab WITH PASSWORD 'colab' CREATEDB;" -U postgres |
17 | 17 | ||
18 | -#before_script: | ||
19 | -# flake8 revproxy | 18 | +before_script: |
19 | + flake8 colab | ||
20 | 20 | ||
21 | script: | 21 | script: |
22 | ./runtests.py | 22 | ./runtests.py |
23 | 23 | ||
24 | -#after_success: | ||
25 | -# coveralls | 24 | +after_success: |
25 | + coveralls |
README.rst
@@ -76,16 +76,15 @@ desired location in environment variable **COLAB_SETTINGS**. | @@ -76,16 +76,15 @@ desired location in environment variable **COLAB_SETTINGS**. | ||
76 | About test | 76 | About test |
77 | ========== | 77 | ========== |
78 | 78 | ||
79 | -How to write a tests. | 79 | +How to write a test |
80 | -------------------- | 80 | -------------------- |
81 | Inside of each folder on /vagrant/colab/<folder> you can create a folder called | 81 | Inside of each folder on /vagrant/colab/<folder> you can create a folder called |
82 | "tests", and inside of it implements the code for test each file. | 82 | "tests", and inside of it implements the code for test each file. |
83 | 83 | ||
84 | -How to run a test | ||
85 | ------------------ | 84 | +How to run the tests |
85 | +-------------------- | ||
86 | 86 | ||
87 | Follow the steps below: | 87 | Follow the steps below: |
88 | 88 | ||
89 | * Go to vagrant/colab/ | 89 | * Go to vagrant/colab/ |
90 | -* Install the test dependencies with `pip install -r requirements_test.txt` | ||
91 | * run: ./runtests.sh | 90 | * run: ./runtests.sh |
requirements_test.txt
vagrant/provision.sh
@@ -24,7 +24,7 @@ for dir in /vagrant/colab /vagrant; do | @@ -24,7 +24,7 @@ for dir in /vagrant/colab /vagrant; do | ||
24 | break | 24 | break |
25 | fi | 25 | fi |
26 | done | 26 | done |
27 | -pip install -r $basedir/requirements.txt | 27 | +pip install -r $basedir/requirements_dev.txt |
28 | pip install -e $basedir | 28 | pip install -e $basedir |
29 | 29 | ||
30 | if [ ! -s /etc/colab/settings.yaml ]; then | 30 | if [ ! -s /etc/colab/settings.yaml ]; then |