-
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,204 additions
and
162 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 |
---|---|---|
|
@@ -13,3 +13,4 @@ packages | |
dist/windows/ | ||
_benchmark_data* | ||
*.benchmark-results | ||
generated-site/ |
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,11 +1,136 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.6" | ||
matrix: | ||
sudo: false | ||
|
||
stages: | ||
- integration | ||
- release | ||
|
||
env: | ||
global: | ||
- CACHE_NAME=${TRAVIS_JOB_NAME} | ||
|
||
|
||
_commands_provider: | ||
|
||
_test: &_test make test | ||
|
||
_lint: &_lint make lint | ||
|
||
_release: &_release make local-release | ||
|
||
_install_requirements: &_install_requirements make dep | ||
|
||
# https://ttcshelbyville.wordpress.com/2012/12/19/disable-remote-differential-compression-form-the-command-line/ | ||
_disable_windows_compression: &_disable_windows_compression "powershell Disable-WindowsOptionalFeature -Online -FeatureName MSRDC-Infrastructure" | ||
|
||
# https://travis-ci.community/t/yarn-network-troubles/333/7 | ||
_disable_windows_defender: &_disable_windows_defender "powershell Set-MpPreference -DisableRealtimeMonitoring \\$true" | ||
|
||
|
||
_steps_provider: | ||
|
||
_test: &_step_test | ||
|
||
install: | ||
- *_install_requirements | ||
before_script: *_lint | ||
script: *_test | ||
|
||
_release: &_step_release | ||
|
||
install: *_install_requirements | ||
script: *_release | ||
|
||
|
||
|
||
jobs: | ||
include: | ||
- python: "3.7" | ||
dist: xenial # Need for python 3.7 | ||
install: pip install -r requirements.txt | ||
before_script: flake8 ./bin/q ./test/test-suite --count --select=E901,E999,F821,F822,F823 --show-source --statistics | ||
script: PYTHONIOENCODING=UTF-8 test/test-all | ||
- stage: integration | ||
name: py27-macos | ||
os: osx | ||
language: generic | ||
osx_image: xcode7.3 | ||
env: | ||
- PYENV_VERSION=2.7.14 | ||
before_install: source setup-pyenv.sh | ||
<<: *_step_test | ||
cache: | ||
directories: | ||
- ${HOME}/.pyenv_cache | ||
|
||
- stage: integration | ||
name: py36-macos | ||
os: osx | ||
language: generic | ||
osx_image: xcode7.3 | ||
env: | ||
- PYENV_VERSION=3.6.4 | ||
before_install: source setup-pyenv.sh | ||
<<: *_step_test | ||
cache: | ||
directories: | ||
- ${HOME}/.pyenv_cache | ||
|
||
- stage: integration | ||
name: py37-macos | ||
os: osx | ||
language: generic | ||
osx_image: xcode7.3 | ||
env: | ||
- PYENV_VERSION=3.7.3 | ||
before_install: source setup-pyenv.sh | ||
<<: *_step_test | ||
cache: | ||
directories: | ||
- ${HOME}/.pyenv_cache | ||
|
||
- stage: integration | ||
name: py27-linux | ||
language: python | ||
python: "2.7" | ||
<<: *_step_test | ||
|
||
- stage: integration | ||
name: py36-linux | ||
language: python | ||
python: "3.6" | ||
<<: *_step_test | ||
|
||
- stage: integration | ||
name: py37-linux | ||
language: python | ||
dist: xenial | ||
python: "3.7" | ||
<<: *_step_test | ||
|
||
- stage: release | ||
name: macos | ||
os: osx | ||
language: generic | ||
osx_image: xcode7.3 | ||
env: | ||
- PYENV_VERSION=3.7.3 | ||
before_install: source setup-pyenv.sh | ||
<<: *_step_release | ||
cache: | ||
directories: | ||
- ${HOME}/.pyenv_cache | ||
|
||
- stage: release | ||
name: linux | ||
language: python | ||
dist: xenial | ||
python: "3.7" | ||
<<: *_step_release | ||
|
||
- stage: release | ||
name: windows | ||
os: windows | ||
language: shell | ||
env: | ||
- PATH=/c/Python37:/c/Python37/Scripts:$PATH | ||
before_install: | ||
- *_disable_windows_compression | ||
- *_disable_windows_defender | ||
- choco install make | ||
- choco install python --version 3.7.3 | ||
<<: *_step_release |
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,37 @@ | ||
SHELL := /bin/bash | ||
|
||
PROJECT_NAME=$(shell dirname "$0") | ||
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
.PHONY: test help | ||
.DEFAULT_GOAL := ci | ||
|
||
ci: lint test ## Equivelant to 'make lint test' | ||
|
||
help: ## Show this help message. | ||
|
||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
dep: ## Install the dependent libraries. | ||
|
||
pip install -r test-requirements.txt | ||
pip install -e . | ||
|
||
lint: dep ## Run lint validations. | ||
|
||
flake8 q/ --count --select=E901,E999,F821,F822,F823 --show-source --statistics | ||
|
||
test: dep ## Run the unit tests. | ||
|
||
test/test-all | ||
## TODO Bring back pytest | ||
## py.test -rs -c pytest.ini -s -v q/tests/suite.py --rootdir . | ||
|
||
release: ## Run release | ||
pip install py-ci | ||
pyci release --no-wheel-publish --wheel-universal | ||
|
||
local-release: | ||
pip install py-ci | ||
./do-manual-release.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
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,7 @@ | ||
#!/usr/bin/env python | ||
|
||
q_version = '2.0.12' | ||
|
||
|
||
if __name__ == '__main__': | ||
print(q_version) |
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.