Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop4 #103

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,39 @@ python:
install:
- pip install -e .
- pip install ."[tests]"
- pip install coverage
- pip install codeclimate-test-reporter
- pip install pytest-cov

before_script:
- py.test -s tests
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

script:
- py.test -s tests
- py.test --cov=tests tests/
- coverage xml
- ./build_docker.sh
- ./publish_via_travis.sh

deploy:
# Build Docker container and push to Docker Hub
provider: script
script: bash deploy.sh
on:
branch: develop4

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

services:
- docker

env:
global:
- CC_TEST_REPORTER_ID=$TEST_REPORTER_ID
- CODECLIMATE_REPO_TOKEN=[token]
- BUILD_TAG=$TRAVIS_TAG
- secure: "baz4o5dPTHBnQ7lLq4uhSPwduSWkErr8v5d/TKJSTegzgh4TjIGLjdjwho07LjS76bDAnd96odTf5GQEm90oMh48vJowP1TzvDdzqkWRbr9j12SY78RMAKRA+v2ZuhA/ePpomFNcJ2R+3Cppezc5W3mXEMsKrkKSHGJL8TyjzJK/gT9OvojuZ4W/QLah7zXRhycihL+DQvHvwbGjzUbtVw4aqUA5R2ETlltAzyU7GCqEnjL4skMrXCoclJd6M8eCCLaZ4wjzWSOkwEcBMGLPUHtCs0+vOGf3oGeRugv2gaMYM70TUR4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 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo "$DHUB_PASS" | docker login -u "$DHUB_USERNAME" --password-stdin
docker push seanngan7/hubcommander
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Development Setup
HubCommander is a Python 3 application, and as such, having a good Python 3 environment up and running is essential.

Google has very good documentation on setting up a Python environment [here](https://cloud.google.com/python/setup).
(You don't need to set up the Google Cloud dependencies -- unless you want to do really cool GCP chatopcy things with HubCommander.)
(You don't need to set up the Google Cloud dependencies -- unless you want to do really cool GCP chatops things with HubCommander.)

You will also need to install `git`. Some good guides on `git` can be found [here](https://git-scm.com/documentation).

Expand Down