Skip to content

Commit

Permalink
Merge pull request #10 from signalfx/stumpf-haproxy
Browse files Browse the repository at this point in the history
add support for circleci testing for haproxy
  • Loading branch information
Mark Stumpf committed Sep 28, 2018
2 parents 1e14ca7 + 64d34a9 commit 1b5740f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '2'
jobs:
build:
docker:
- image: ubuntu:yakkety
working_directory: ~/code
steps:
- setup_remote_docker
- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
apt-get update -q
apt-get install -yq curl python-pip
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
- run:
name: Install docker-compose
command: |
set -x
curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- checkout
- run:
name: Run basic tests
working_directory: ~/code
command: |
pip install -r test_requirements.txt
bash verify.sh
3 changes: 3 additions & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pep8
pytest
mock
4 changes: 4 additions & 0 deletions verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -e
pep8 --max-line-length=120 haproxy.py
py.test test_haproxy.py

0 comments on commit 1b5740f

Please sign in to comment.