Skip to content

Commit 2685f8d

Browse files
author
Hugo Osvaldo Barrera
committed
Merge master into dav_default_ns
2 parents bf67af6 + b9c01f8 commit 2685f8d

23 files changed

+209
-282
lines changed

.builds/style.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
image: archlinux
2+
packages:
3+
- docker
4+
- docker-compose
5+
- python-pip
6+
sources:
7+
- https://github.com/pimutils/vdirsyncer
8+
tasks:
9+
- setup: |
10+
cd vdirsyncer
11+
make -e install-style
12+
- test: |
13+
cd vdirsyncer
14+
# Non-system python is used for packages:
15+
export PATH=$PATH:~/.local/bin/
16+
make -e style

.builds/tests-minimal.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# TODO: Maybe shift this job to ubuntu/debian.
2+
image: archlinux
3+
packages:
4+
- docker
5+
- docker-compose
6+
- python-pip
7+
sources:
8+
- https://github.com/pimutils/vdirsyncer
9+
environment:
10+
BUILD: test
11+
CI: true
12+
CODECOV_TOKEN: b834a3c5-28fa-4808-9bdb-182210069c79
13+
REQUIREMENTS: minimal
14+
# TODO: ETESYNC_TESTS
15+
tasks:
16+
- setup: |
17+
cd vdirsyncer
18+
sudo systemctl start docker
19+
DAV_SERVER="radicale xandikos" make -e install-test
20+
- test: |
21+
cd vdirsyncer
22+
# Non-system python is used for packages:
23+
export PATH=$PATH:~/.local/bin/
24+
make -e ci-test
25+
DAV_SERVER=radicale make -e ci-test-storage
26+
DAV_SERVER=xandikos make -e ci-test-storage

.builds/tests-release.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
image: archlinux
2+
packages:
3+
- docker
4+
- docker-compose
5+
- python-pip
6+
sources:
7+
- https://github.com/pimutils/vdirsyncer
8+
environment:
9+
BUILD: test
10+
CI: true
11+
CODECOV_TOKEN: b834a3c5-28fa-4808-9bdb-182210069c79
12+
REQUIREMENTS: release
13+
# TODO: ETESYNC_TESTS
14+
tasks:
15+
- setup: |
16+
cd vdirsyncer
17+
sudo systemctl start docker
18+
DAV_SERVER="radicale xandikos" make -e install-test
19+
- test: |
20+
cd vdirsyncer
21+
# Non-system python is used for packages:
22+
export PATH=$PATH:~/.local/bin/
23+
make -e ci-test
24+
DAV_SERVER=radicale make -e ci-test-storage
25+
DAV_SERVER=xandikos make -e ci-test-storage

.pre-commit-config.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ repos:
55
- id: trailing-whitespace
66
args: [--markdown-linebreak-ext=md]
77
- id: end-of-file-fixer
8-
exclude: '.travis.yml'
98
- id: check-toml
109
- id: check-added-large-files
1110
- id: debug-statements
@@ -18,12 +17,3 @@ repos:
1817
rev: v2.3.0
1918
hooks:
2019
- id: reorder-python-imports
21-
- repo: local
22-
hooks:
23-
- id: update-travis
24-
name: Update travis job definition
25-
description: Ensures that travis job definition are up to date.
26-
entry: scripts/make_travisconf.py
27-
files: '.*travis.*'
28-
stages: [commit]
29-
language: script

.travis.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# setuptools-scm includes everything tracked by git
22
prune docker
3-
prune docker-compose
43
prune scripts
54
prune tests/storage/servers
65
prune tests/storage/etesync

Makefile

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export DETERMINISTIC_TESTS := false
1515
# Run the etesync testsuite.
1616
export ETESYNC_TESTS := false
1717

18-
# Assume to run in Travis. Don't use this outside of a virtual machine. It will
18+
# Assume to run in CI. Don't use this outside of a virtual machine. It will
1919
# heavily "pollute" your system, such as attempting to install a new Python
2020
# systemwide.
2121
export CI := false
@@ -41,17 +41,17 @@ export TESTSERVER_BASE := ./tests/storage/servers/
4141
CODECOV_PATH = /tmp/codecov.sh
4242

4343
ifeq ($(CI), true)
44-
test-storage:
45-
curl -s https://codecov.io/bash > $(CODECOV_PATH)
46-
$(PYTEST) tests/storage/
47-
bash $(CODECOV_PATH) -c -F storage
48-
test:
44+
ci-test:
4945
curl -s https://codecov.io/bash > $(CODECOV_PATH)
5046
$(PYTEST) tests/unit/
5147
bash $(CODECOV_PATH) -c -F unit
5248
$(PYTEST) tests/system/
5349
bash $(CODECOV_PATH) -c -F system
5450
[ "$(ETESYNC_TESTS)" = "false" ] || make test-storage
51+
ci-test-storage:
52+
curl -s https://codecov.io/bash > $(CODECOV_PATH)
53+
$(PYTEST) tests/storage/
54+
bash $(CODECOV_PATH) -c -F storage
5555
else
5656
test:
5757
$(PYTEST)
@@ -79,10 +79,6 @@ install-test: install-servers install-dev
7979
fi
8080
[ -z "$(TEST_EXTRA_PACKAGES)" ] || pip install $(TEST_EXTRA_PACKAGES)
8181

82-
install-test-storage: install-test
83-
# This is just an alias
84-
true
85-
8682
install-style: install-docs install-dev
8783
pip install pre-commit
8884

@@ -120,12 +116,4 @@ install-dev:
120116
pip install -U --force-reinstall $$(python setup.py --quiet minimal_requirements); \
121117
fi
122118

123-
ssh-submodule-urls:
124-
git submodule foreach "\
125-
echo -n 'Old: '; \
126-
git remote get-url origin; \
127-
git remote set-url origin \$$(git remote get-url origin | sed -e 's/https:\/\/github\.com\//[email protected]:/g'); \
128-
echo -n 'New URL: '; \
129-
git remote get-url origin"
130-
131119
.PHONY: docs

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
vdirsyncer
33
==========
44

5-
.. image:: https://travis-ci.org/pimutils/vdirsyncer.svg?branch=master
6-
:target: https://travis-ci.org/pimutils/vdirsyncer
5+
.. image:: https://builds.sr.ht/~whynothugo/vdirsyncer.svg
6+
:target: https://builds.sr.ht/~whynothugo/vdirsyncer
77
:alt: CI status
88

99
.. image:: https://codecov.io/github/pimutils/vdirsyncer/coverage.svg?branch=master

docker-compose.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ in terms of data safety**. See `this blog post
266266
<https://evertpot.com/google-carddav-issues/>`_ for the details. Always back
267267
up your data.
268268

269-
At first run you will be asked to authorize application for google account
269+
At first run you will be asked to authorize application for Google account
270270
access.
271271

272272
To use this storage type, you need to install some additional dependencies::

0 commit comments

Comments
 (0)