Skip to content

Commit 0c4e5dd

Browse files
committed
Apply CI-related fixes
1 parent 6fa0066 commit 0c4e5dd

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,25 @@ jobs:
3434
password:
3535
secure: U6JJcByjLv2PutUpnpqDT7cNIUYu9Ap9t4G90KULEn6Syxa49aX14BT6k2jBakWbQgrPCxLLNSWeCoC4xPl/Z2/9HLEFxZLVovtVbiaJ8HrTcoWmEZijnGob9Ofh94TFP8VtifjqHXeIrPi78XyZEks/ed0Sj3jSH4BL74PDHvqbD1RnsezFm4QGI2ESOWY+laJ2ralcpHRJh0hJb0QHxOpbKPVM+QefiFs+VFkFP25hQcn/G3qdduzW5NQ8OHBYCbevy6/1yt/M67ZzAeA0n4UrkZ/3vBsMJJ3wynWWZ3xO+lGs6eqZ31E8vicogYbw5hXs119JRkKUrcU5uqVL1mogf8N6y76w2xNV6Aul/XtpBiuPQsHm0tChwTI6yyGzAZBRPMB1KzRclDKGQThIBhpX+wfqHSpvdj1CZV5AMm3+6nHA0LSGWiuJ1BW7pTrAp9YFPbrQfH59JWMhy8ng5lexcQQj7spSO/DPw0VMIfUiw644BfSfyZwls5du4yYfWOkd8RoELEa2IGqCp1sTqjWvSuX3nzKCbJhxAwrVU5mK9fiMPcL1jURIwlFvooI+qKAp3CdGZ1IM+HFmpzXym2kvZvmrNXduVSZcqG3DrCFxt77FYsN5SNB/uly1vLq/6Y0BaCw9ao6YWfW3fvU2cCcyejjzPyfGzZ2jA5uOpZ8=
3636
distributions: "sdist bdist_wheel"
37+
on: { tags: true }
3738

3839
- provider: script # RPM (actually build only, no deployment - will be deployed to the Github release)
3940
skip_cleanup: true
4041
script: bash ci/rpm/travis-deploy.sh
42+
on: { tags: true }
4143

4244
- provider: releases # Github (rpm files must be in dist/ first)
4345
skip_cleanup: true
4446
token:
4547
secure: arhgNhJMfVq8xaa5xMswvjkgfgE8dDJ6BM0X+HI28m7BrwjxaVyr5Ct1qIohEQSZOpihwHzFLLwzSICc5sR6H8Ai4yYcm/sLGOAHyp4p1HeAXPqbtyUtn3rbcjsKXSfwjntkGommC6sYoY5GZhJy2qcRQIADjRMPQWRURY5/6KBBY05scL2vVpQw2NHp2pNCiMSDhokFsN3mv1PX15QDJdKFuIrD61cD15ljkwol7OJ+wKzGozyJB6GHkWi7WsGXsgdzjruHY7tcqPEksa+sWxxGGMmLQ7gVruVUlguunACjh0xlZvMBDKWEeffvRy9JSkAKVccTtaiZw9beoCaihZOVys/Bw4Znv3e+UpkOOrBwMFOdjc1R/Kz1/aewuYFckKhP/opdkpOj3T0VIckmK4s/vWYWhHLRiAHE4gb47UxYIKHGqPfs9XMyZryRF6iaTm3LKtTb+ufM0OQEKtWR0MBBRmpqapx74Jd6tuf7n4KbsS4ZuVeb27+OBhfogpYdfGW2KxzwCOwYl+iGCsNkPyMUOmqo8MfFvwEsHU7SnZ1G2tcSoptT8+Bj8n2lKB7sf/llywUJxKKG9kpK9Y9Tc6yvtgjj4ewjsjgaGCksS5jVPk223WEHu/iX4FK4Ftms9cXWLbQpMKW4dACyAEu8ONIRw+TXvUFA2J3wWsOiQNk=
4648
file_glob: true
4749
file: dist/git-machete-*.noarch.rpm
50+
on: { tags: true }
4851

4952
- provider: script # brew tap (artifacts must be released to PyPI first)
5053
script: bash ci/homebrew-tap/travis-deploy.sh
54+
on: { tags: true }
5155

5256
- provider: script # PPA
5357
script: bash ci/apt-ppa-upload/travis-deploy.sh
58+
on: { tags: true }

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Output format of any non-plumbing command can change in non-backward-compatible
5353
1. Make sure that build for `master` passes on [Travis CI](https://travis-ci.org/VirtusLab/git-machete/branches).
5454

5555
1. Verify that a build started for [Snap](https://build.snapcraft.io/user/VirtusLab/git-machete).
56+
If not, check build.snapcraft.io webhook on Github (under Settings > Webhooks) -
57+
sometimes the build system responds with 500 status for no clear reason, in such case `Redeliver` the call.
5658
Once ready, install the `latest/edge` revision locally (`sudo snap install --edge git-machete`)
5759
and verify that it works correctly, esp. wrt. push/pull via ssh/https and editor (`git machete edit` and interactive rebases).
5860

@@ -66,17 +68,20 @@ Output format of any non-plumbing command can change in non-backward-compatible
6668

6769
1. Verify that the release has been created on [Github](https://github.com/VirtusLab/git-machete/releases)
6870
and that a `git-machete-VERSION-1.noarch.rpm` file is present under the Assets.
71+
6972
Fix the formatting in the description manually by copy-pasting the tag description
7073
(see [this answer](https://github.community/t5/How-to-use-Git-and-GitHub/add-release-notes-to-git-remote-tag-from-command-line/m-p/22343/highlight/true#M6488)
7174
for more details on why it's not automated as well).
7275

7376
1. Verify that the latest version is uploaded to [PyPI](https://pypi.org/project/git-machete).
7477

7578
1. Verify that the latest commit in [VirtusLab/homebrew-git-machete](https://github.com/VirtusLab/homebrew-git-machete) tap repo refers to the latest version.
79+
7680
Re-run the latest build for `orphan/brew-package-check` branch on [Travis CI](https://travis-ci.org/VirtusLab/git-machete/branches).
7781
Inspect the job output and verify that the latest version gets correctly installed on Mac OS X (esp. see the output of `git machete --version`).
7882

7983
1. Verify that a build started on [git-machete PPA](https://launchpad.net/~virtuslab/+archive/ubuntu/git-machete/+packages).
84+
8085
Once the new version package is published and the old one is removed (typically takes around 20-30 min),
8186
follow the instructions from [ci/apt-ppa-test-install/README.md](https://github.com/VirtusLab/git-machete/tree/master/ci/apt-ppa-test-install).
8287
Inspect the output of `docker-compose` and verify that the latest version gets correctly installed on Ubuntu (esp. see the output of `git machete --version`).
@@ -88,5 +93,6 @@ Output format of any non-plumbing command can change in non-backward-compatible
8893
If the release introduces significant changes/critical bugfixes, please [flag the package as out of date](https://aur.archlinux.org/pkgbase/git-machete/flag).
8994

9095
1. A [git-machete package](https://nixos.org/nixos/packages.html?channel=nixos-unstable&query=git-machete) is available for NixOS.
96+
9197
[Version-bump PRs to NixOS/nixpkgs](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+git-machete) are opened by a semi-automatic update on an irregular basis.
9298
There is an issue ([#79](https://github.com/VirtusLab/git-machete/issues/79)) for opening version-bump PRs automatically on each release.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Install the AUR package [git-machete](https://aur.archlinux.org/packages/git-mac
6767

6868
### Using Nix (macOS & most Linux distributions)
6969

70-
On macOS and most Linux distributions, you can install via [Nix](https://nixos.org/nix/):
70+
On macOS and most Linux distributions, you can install via [Nix](https://nixos.org/nix):
7171

7272
```shell script
7373
nix-channel --add https://nixos.org/channels/nixos-unstable unstable # if you haven't set up any channels yet

ci/checks/links.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ set -e -o pipefail -u
88

99
git ls-files | grep -v '^ci/' | xargs grep -ho "https://[^]') ]*" | sort -u | xargs -t -l curl -LfsI --max-time 10 -o/dev/null -w "> %{http_code}\n" || {
1010
echo "Some of the links found in the codebase did not return 2xx HTTP status, please fix"
11+
exit 1
1112
}

0 commit comments

Comments
 (0)