Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit cceee18

Browse files
Merge pull request #1017 from lukaszstolarczuk/remove-travis-on-stables
CI: remove Travis CI configuration on stable branches
2 parents 4de307c + 1e13c2c commit cceee18

File tree

5 files changed

+5
-52
lines changed

5 files changed

+5
-52
lines changed

.github/workflows/gha.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
#
2-
# The 'XXX_DISABLE_' suffix is used twice in this file to disable two actions:
3-
# 1) XXX_DISABLE_${CI_FILE_PUSH_IMAGE_TO_REPO} - disables pushing the rebuilt Docker image and
4-
# 2) XXX_DISABLE_AUTO_DOC_UPDATE - disables making pull requests with the update of documentation.
5-
# Those two actions are disabled, because they conflict with the same ones run on Travis.
6-
# Only one CI (Travis or GitHub Actions) can run them at the time, so they can be enabled here,
7-
# when we decide to switch from Travis to GitHub Actions. The 'XXX_DISABLE_' suffix should be removed then.
8-
#
91

102
name: CPP
113
on: [push, pull_request]
@@ -22,13 +14,14 @@ jobs:
2214
env:
2315
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
2416
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
17+
GITHUB_TOKEN: ${{ secrets.DOC_UPDATE_GITHUB_TOKEN }}
2518
HOST_WORKDIR: /home/runner/work/libpmemobj-cpp/libpmemobj-cpp
2619
WORKDIR: utils/docker
2720
strategy:
2821
matrix:
2922
CONFIG: ["TYPE=debug OS=fedora OS_VER=32 PUSH_IMAGE=1",
3023
"TYPE=debug OS=ubuntu OS_VER=20.04 PUSH_IMAGE=1 CHECK_CPP_STYLE=1",
31-
"TYPE=release OS=fedora OS_VER=32 XXX_DISABLE_AUTO_DOC_UPDATE=1",
24+
"TYPE=release OS=fedora OS_VER=32 AUTO_DOC_UPDATE=1",
3225
"TYPE=release OS=ubuntu OS_VER=20.04",
3326
"TYPE=valgrind OS=ubuntu OS_VER=20.04",
3427
"TYPE=memcheck_drd OS=ubuntu OS_VER=20.04",
@@ -40,7 +33,7 @@ jobs:
4033
- name: Clone the git repo
4134
uses: actions/checkout@v2
4235
with:
43-
fetch-depth: 50
36+
fetch-depth: 0
4437

4538
- name: Pull or rebuild the image
4639
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh rebuild
@@ -49,7 +42,7 @@ jobs:
4942
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./build.sh
5043

5144
- name: Push the image
52-
run: cd $WORKDIR && source ./set-vars.sh && ${{ matrix.CONFIG }} /bin/bash -c "if [[ -f XXX_DISABLE_${CI_FILE_PUSH_IMAGE_TO_REPO} ]]; then images/push-image.sh $OS-$OS_VER; fi"
45+
run: cd $WORKDIR && source ./set-vars.sh && ${{ matrix.CONFIG }} /bin/bash -c "if [[ -f ${CI_FILE_PUSH_IMAGE_TO_REPO} ]]; then images/push-image.sh $OS-$OS_VER; fi"
5346

5447
windows:
5548
name: Windows
@@ -88,7 +81,7 @@ jobs:
8881
- name: Clone the git repo
8982
uses: actions/checkout@v2
9083
with:
91-
fetch-depth: 50
84+
fetch-depth: 0
9285

9386
- name: Install PMDK
9487
run: |

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
!.gitattributes
44
!.github/
55
!.clang-format
6-
!.travis.yml
76
!.mailmap
87
!.version
98
build/

.travis.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
libpmemobj-cpp
22
===============
33

4-
[![Build Status](https://travis-ci.org/pmem/libpmemobj-cpp.svg?branch=master)](https://travis-ci.org/pmem/libpmemobj-cpp)
54
[![Build status](https://github.com/pmem/libpmemobj-cpp/workflows/CPP/badge.svg)](https://github.com/pmem/libpmemobj-cpp/actions)
65
[![libpmemobj-cpp version](https://img.shields.io/github/tag/pmem/libpmemobj-cpp.svg)](https://github.com/pmem/libpmemobj-cpp/releases/latest)
76
[![Coverity Scan Build Status](https://scan.coverity.com/projects/15911/badge.svg)](https://scan.coverity.com/projects/pmem-libpmemobj-cpp)

travis.yml

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

0 commit comments

Comments
 (0)