-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbt 0.5.4 release
- Loading branch information
Showing
89 changed files
with
4,285 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.5.3 | ||
current_version = 0.5.4 | ||
commit = True | ||
tag = True | ||
|
||
|
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,3 @@ | ||
[report] | ||
include = | ||
dbt/* |
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,18 @@ | ||
FROM python | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y python-pip netcat | ||
RUN apt-get install -y python-dev python3-dev | ||
|
||
RUN pip install pip --upgrade | ||
RUN pip install virtualenv | ||
RUN pip install virtualenvwrapper | ||
|
||
COPY . /usr/src/app | ||
|
||
WORKDIR /usr/src/app | ||
RUN cd /usr/src/app | ||
RUN ./test/setup.sh | ||
|
||
|
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,13 @@ | ||
.PHONY: test | ||
|
||
changed_tests := `git status --porcelain | grep '^\( M\|A\)' | awk '{ print $$2 }' | grep '\/test_[a-zA-Z_\-\.]\+.py'` | ||
|
||
test: | ||
@echo "Test run starting..." | ||
@docker-compose run test /usr/src/app/test/runner.sh | ||
|
||
test-new: | ||
@echo "Test run starting..." | ||
@echo "Changed test files:" | ||
@echo "${changed_tests}" | ||
@docker-compose run test /usr/src/app/test/runner.sh ${changed_tests} |
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,66 @@ | ||
version: 1.0.{build}-{branch} | ||
|
||
environment: | ||
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the | ||
# /E:ON and /V:ON options are not enabled in the batch script intepreter | ||
# See: http://stackoverflow.com/a/13751649/163740 | ||
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" | ||
TOX_ENV: "pywin" | ||
|
||
matrix: | ||
- PYTHON: "C:\\Python27" | ||
PYTHON_VERSION: "2.7.8" | ||
PYTHON_ARCH: "32" | ||
|
||
#- PYTHON: "C:\\Python35" | ||
# PYTHON_VERSION: "3.5.2" | ||
# PYTHON_ARCH: "32" | ||
|
||
PGUSER: postgres | ||
PGPASSWORD: Password12! | ||
|
||
services: | ||
- postgresql94 | ||
|
||
hosts: | ||
database: 127.0.0.1 | ||
|
||
init: | ||
- PATH=C:\Program Files\PostgreSQL\9.4\bin\;%PATH% | ||
- ps: Set-Content "c:\program files\postgresql\9.4\data\pg_hba.conf" "host all all ::1/128 trust" | ||
- ps: Add-Content "c:\program files\postgresql\9.4\data\pg_hba.conf" "host all all 127.0.0.1/32 trust" | ||
|
||
install: | ||
# Download setup scripts and unzip | ||
- ps: "wget https://github.com/cloudify-cosmo/appveyor-utils/archive/master.zip -OutFile ./master.zip" | ||
- "7z e master.zip */appveyor/* -oappveyor" | ||
|
||
# Install Python (from the official .msi of http://python.org) and pip when | ||
# not already installed. | ||
- "powershell ./appveyor/install.ps1" | ||
|
||
# Prepend newly installed Python to the PATH of this build (this cannot be | ||
# done from inside the powershell script as it would require to restart | ||
# the parent CMD process). | ||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | ||
|
||
# Check that we have the expected version and architecture for Python | ||
- "python --version" | ||
- "python -c \"import struct; print(struct.calcsize('P') * 8)\"" | ||
|
||
build: false # Not a C# project, build stuff at the test step instead. | ||
|
||
before_test: | ||
- "%CMD_IN_ENV% pip install tox" | ||
|
||
test_script: | ||
# set up psql db | ||
- createdb dbt | ||
- psql -c "CREATE ROLE root WITH UNENCRYPTED PASSWORD 'password';" -U postgres | ||
- psql -c "ALTER ROLE root WITH LOGIN;" -U postgres | ||
- psql -c "GRANT CREATE, CONNECT ON DATABASE dbt TO root;" -U postgres | ||
|
||
# this is generally a bad idea TODO | ||
- git config --system http.sslverify false | ||
|
||
- "%CMD_IN_ENV% tox -e %TOX_ENV%" |
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,5 +1,28 @@ | ||
machine: | ||
post: | ||
- pyenv global 2.7.9 3.5.0 | ||
hosts: | ||
database: 127.0.0.1 | ||
|
||
database: | ||
override: | ||
- createdb dbt | ||
- echo "CREATE ROLE root WITH UNENCRYPTED PASSWORD 'password';" | psql -U postgres | ||
- echo "ALTER ROLE root WITH LOGIN;" | psql -U postgres | ||
- echo "GRANT SELECT, UPDATE, INSERT ON ALL TABLES IN SCHEMA dbt.* TO root;" | psql -U postgres | ||
- echo "GRANT CREATE, CONNECT ON DATABASE dbt TO root;" | psql -U postgres | ||
|
||
|
||
dependencies: | ||
pre: | ||
- sudo add-apt-repository -y ppa:fkrull/deadsnakes | ||
- sudo apt-get update | ||
- sudo apt-get install python3.5 python3.5-dev | ||
- pip install --upgrade pip setuptools || true | ||
- pip install --upgrade tox tox-pyenv | ||
override: | ||
- pyenv local 2.7.9 3.5.0 | ||
|
||
test: | ||
override: | ||
- sudo chown -R ubuntu:ubuntu /root/ | ||
- /bin/bash -c 'cd /home/ubuntu/dbt && tox' | ||
post: | ||
- mv htmlcov $CIRCLE_ARTIFACTS/ |
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
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
Oops, something went wrong.