-
-
Notifications
You must be signed in to change notification settings - Fork 742
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 #1 from borgbackup/master
Pull latest upstream master
- Loading branch information
Showing
58 changed files
with
2,246 additions
and
2,242 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[run] | ||
branch = True | ||
source = borg | ||
omit = | ||
borg/__init__.py | ||
borg/__main__.py | ||
borg/_version.py | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
def __repr__ | ||
raise AssertionError | ||
raise NotImplementedError | ||
if 0: | ||
if __name__ == .__main__.: | ||
ignore_errors = 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
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,12 +1,47 @@ | ||
sudo: required | ||
|
||
language: python | ||
python: | ||
- "3.2" | ||
- "3.3" | ||
- "3.4" | ||
# command to install dependencies | ||
|
||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
|
||
matrix: | ||
include: | ||
- python: 3.2 | ||
os: linux | ||
env: TOXENV=py32 | ||
- python: 3.3 | ||
os: linux | ||
env: TOXENV=py33 | ||
- python: 3.4 | ||
os: linux | ||
env: TOXENV=py34 | ||
- language: generic | ||
os: osx | ||
osx_image: xcode6.4 | ||
env: TOXENV=py32 | ||
- language: generic | ||
os: osx | ||
osx_image: xcode6.4 | ||
env: TOXENV=py33 | ||
- language: generic | ||
os: osx | ||
osx_image: xcode6.4 | ||
env: TOXENV=py34 | ||
|
||
install: | ||
- "sudo apt-get install -y libacl1-dev" | ||
- "pip install --use-mirrors Cython" | ||
- "pip install -e ." | ||
# command to run tests | ||
script: fakeroot -u py.test | ||
- ./.travis/install.sh | ||
|
||
script: | ||
- ./.travis/run.sh | ||
|
||
after_success: | ||
- ./.travis/upload_coverage.sh | ||
|
||
notifications: | ||
irc: | ||
channels: | ||
- "irc.freenode.org#borgbackup" | ||
use_notice: true | ||
skip_join: 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,48 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
if [[ "$(uname -s)" == 'Darwin' ]]; then | ||
brew update || brew update | ||
|
||
if [[ "${OPENSSL}" != "0.9.8" ]]; then | ||
brew outdated openssl || brew upgrade openssl | ||
fi | ||
|
||
if which pyenv > /dev/null; then | ||
eval "$(pyenv init -)" | ||
fi | ||
|
||
brew install lz4 | ||
brew outdated pyenv || brew upgrade pyenv | ||
|
||
case "${TOXENV}" in | ||
py32) | ||
pyenv install 3.2.6 | ||
pyenv global 3.2.6 | ||
;; | ||
py33) | ||
pyenv install 3.3.6 | ||
pyenv global 3.3.6 | ||
;; | ||
py34) | ||
pyenv install 3.4.3 | ||
pyenv global 3.4.3 | ||
;; | ||
esac | ||
pyenv rehash | ||
python -m pip install --user virtualenv | ||
else | ||
pip install virtualenv | ||
sudo add-apt-repository -y ppa:gezakovacs/lz4 | ||
sudo apt-get update | ||
sudo apt-get install -y liblz4-dev | ||
sudo apt-get install -y libacl1-dev | ||
fi | ||
|
||
python -m virtualenv ~/.venv | ||
source ~/.venv/bin/activate | ||
pip install -r requirements.d/development.txt | ||
pip install codecov | ||
pip install -e . |
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
if [[ "$(uname -s)" == "Darwin" ]]; then | ||
eval "$(pyenv init -)" | ||
if [[ "${OPENSSL}" != "0.9.8" ]]; then | ||
# set our flags to use homebrew openssl | ||
export ARCHFLAGS="-arch x86_64" | ||
export LDFLAGS="-L/usr/local/opt/openssl/lib" | ||
export CFLAGS="-I/usr/local/opt/openssl/include" | ||
fi | ||
fi | ||
|
||
source ~/.venv/bin/activate | ||
|
||
if [[ "$(uname -s)" == "Darwin" ]]; then | ||
# no fakeroot on OS X | ||
sudo tox -e $TOXENV | ||
else | ||
fakeroot -u tox | ||
fi |
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 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
NO_COVERAGE_TOXENVS=(pep8) | ||
if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ "${TOXENV}" ]]; then | ||
source ~/.venv/bin/activate | ||
ln .tox/.coverage .coverage | ||
# on osx, tests run as root, need access to .coverage | ||
sudo chmod 666 .coverage | ||
codecov -e TRAVIS_OS_NAME TOXENV | ||
fi |
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.