-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from autopilotpattern/shippable
Test on shippable
- Loading branch information
Showing
4 changed files
with
165 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
language: none | ||
|
||
build: | ||
pre_ci: | ||
- make test-runner | ||
|
||
pre_ci_boot: | ||
image_name: joyent/test | ||
image_tag: latest | ||
pull: false | ||
options: "-e LOG_LEVEL=INFO" | ||
|
||
# run integration tests using Docker Compose | ||
ci: | ||
- make build | ||
- make test | ||
|
||
# send the containers to the Docker Hub | ||
on_success: | ||
- make ship | ||
|
||
integrations: | ||
hub: | ||
- integrationName: DockerHub | ||
type: docker | ||
|
||
key: | ||
- integrationName: TritonTestingKey | ||
type: ssh-key | ||
|
||
notifications: | ||
- integrationName: joyent-slack-blueprints | ||
type: slack | ||
recipients: | ||
- "#blueprints" | ||
branches: | ||
only: | ||
- master | ||
- shippable | ||
on_success: always | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
FROM autopilotpattern/testing | ||
COPY tests/tests.py /src | ||
COPY docker-compose.yml /src | ||
FROM drydock/u14pyt:prod | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y apt-transport-https ca-certificates \ | ||
&& echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list \ | ||
&& apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D \ | ||
&& apt-get update \ | ||
&& apt-get install -y nodejs git docker-engine \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN npm install -g triton json | ||
|
||
RUN git clone https://github.com/autopilotpattern/testing.git \ | ||
&& cd testing \ | ||
&& git checkout python3 \ | ||
&& . $HOME/venv/3.5/bin/activate ; pip install -r requirements.txt \ | ||
&& . $HOME/venv/3.5/bin/activate; python setup.py install | ||
|
||
COPY tests/tests.py /src/tests.py | ||
COPY docker-compose.yml /src/docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from __future__ import print_function | ||
import re | ||
import time | ||
import unittest | ||
|