Skip to content

Commit

Permalink
added travis and circle options
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Diaz committed May 24, 2018
1 parent 24a19d6 commit 0b3379a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 33 deletions.
36 changes: 9 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,19 @@ jobs:
steps:
- checkout

# Download and cache dependencies
# - restore_cache:
# keys:
# - v1-dependencies-{{ checksum "requirements.txt" }}
# # fallback to using the latest cache if no exact match is found
# - v1-dependencies-
- run:
name: Install system dependencies
command: |
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
- run:
name: install dependencies
name: Execute buildout
command: |
python bootstrap.py
bin/buildout -N
# bin/test -t genweb.organs

# - save_cache:
# paths:
# - ./venv
# key: v1-dependencies-{{ checksum "requirements.txt" }}
# run tests!
# this example uses Django's built-in test-runner
# other common Python testing frameworks include pytest and nose
# https://pytest.org
# https://nose.readthedocs.io
# - run:
# name: run tests
# command: |
# . venv/bin/activate
# python manage.py test

# - store_artifacts:
# path: test-reports
# destination: test-reports
- run:
name: Run Python tests
command: |
bin/test -t genweb.organs
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ language: python
sudo: false
python:
- 2.7

before_script:
- sudo apt-get install --yes libsasl2-dev python-dev libldap2-dev libssl-dev

install:
- pip install setuptools zc.buildout
- pip install coveralls coverage
Expand Down
12 changes: 6 additions & 6 deletions genweb/organs/tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ def setUp(self):
# self.loginBrowser(browser, portalURL)
# browser.open(portalURL + url)

def test_create_organ_as_secretari(self):
""" Install all kind of Organs
"""
username = 'usuari.secretari'
login(self.portal, username)
self.create_organ(organ_type="Closed")
# def test_create_organ_as_secretari(self):
# """ Install all kind of Organs
# """
# username = 'usuari.secretari'
# login(self.portal, username)
# self.create_organ(organ_type="Closed")

def test_create_organ_as_manager(self):
""" Install all kind of Organs
Expand Down

0 comments on commit 0b3379a

Please sign in to comment.