Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
Add travisci
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfrg committed Feb 12, 2016
1 parent f02b116 commit c849769
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .coveragerc
@@ -0,0 +1,7 @@
[run]
omit =
dec2/tests/*
dec2/_version.py
dec2/libpepper.py
source =
dec2
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,5 +5,7 @@ build
__pychache__
.cache
.vagrant
.coverage
htmlcov

cluster.yaml
28 changes: 28 additions & 0 deletions .travis.yml
@@ -0,0 +1,28 @@
language: python
sudo: true

python:
- 2.7

services:
- docker

before_install:
# Install conda
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda

# Install dependencies
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- pip install -r requirements.txt

install:
- python setup.py sdist
- pip install dist/*.tar.gz

script:
- py.test --cov=dec2 dec2/tests --cov-report term-missing --cov-report html -s -vv
4 changes: 2 additions & 2 deletions ci/Vagrantfile
Expand Up @@ -31,8 +31,8 @@ Vagrant.configure("2") do |config|

machine.vm.hostname = "dec2-1"
machine.vm.network :private_network, ip: "10.10.10.101"
machine.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", disabled: true

# machine.vm.network :forwarded_port, guest: 22, host: 2222, disabled: true
machine.vm.network :forwarded_port, guest: 22, host: 2223, id: "ssh"
machine.vm.provision :hostmanager
end
end
9 changes: 9 additions & 0 deletions ci/cluster_vagrant.yaml
@@ -0,0 +1,9 @@
instances:
- ip: 127.0.0.1
keypair: ~/.vagrant.d/insecure_private_key
port: 2222
username: vagrant
- ip: 127.0.0.1
keypair: ~/.vagrant.d/insecure_private_key
port: 2223
username: vagrant
9 changes: 9 additions & 0 deletions requirements.txt
Expand Up @@ -4,3 +4,12 @@ boto3
pyyaml
salt-pepper
cm-api

# Test
pytest
coverage
pytest-cov
moto

# Utils
pylint

0 comments on commit c849769

Please sign in to comment.