Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit f645d98

Browse files
authored
Merge pull request #35 from votca/stable_ci
CI: switch to GitHub Actions
2 parents 1800957 + 92cd1cb commit f645d98

4 files changed

Lines changed: 94 additions & 263 deletions

File tree

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
- stable
7+
8+
jobs:
9+
CI:
10+
continue-on-error: ${{ matrix.distro == 'ubuntu_devel' || matrix.distro == 'fedora_rawhide' || matrix.continue-on-error == true }}
11+
strategy:
12+
matrix:
13+
distro: [latest, fedora_rawhide, opensuse, ubuntu, ubuntu_devel, ubuntu_rolling, ubuntu_18.04]
14+
toolchain: [gnu]
15+
cmake_build_type: [Release]
16+
minimal: [false]
17+
own_gmx: [false]
18+
module_build: [false]
19+
coverage: [false]
20+
no_regression_testing: [true]
21+
include:
22+
- distro: latest
23+
toolchain: gnu
24+
cmake_build_type: Release
25+
module_build: true
26+
no_regression_testing: true
27+
runs-on: ubuntu-latest
28+
container: votca/buildenv:${{ matrix.distro }}
29+
steps:
30+
- uses: actions/checkout@v2.2.0
31+
with:
32+
fetch-depth: 0
33+
- name: Run Votca Setup
34+
id: setup
35+
uses: votca/actions/setup@master
36+
with:
37+
distro: ${{ matrix.distro }}
38+
toolchain: ${{ matrix.toolchain }}
39+
minimal: ${{ matrix.minimal == true }}
40+
module: ${{ matrix.module_build == true }}
41+
own_gmx: ${{ matrix.own_gmx == true }}
42+
regression_testing: ${{ matrix.no_regression_testing != true }}
43+
coverage: ${{ matrix.coverage }}
44+
cmake_build_type: ${{ matrix.cmake_build_type }}
45+
ctest_args: ${{ matrix.ctest_args }}
46+
cmake_args: ${{ matrix.cmake_args }}
47+
- uses: actions/cache@v2
48+
with:
49+
path: ~/.ccache
50+
key: ${{ steps.setup.outputs.cache_key }}
51+
restore-keys: ${{ steps.setup.outputs.cache_restore_key }}
52+
- name: CMake
53+
run: mkdir builddir && cd builddir && cmake ${{ steps.setup.outputs.cmake_args }} ../votca
54+
- name: Build
55+
run: |
56+
ccache -z
57+
cmake --build builddir -- -j ${{ steps.setup.outputs.jobs }}
58+
ccache -s
59+
- name: Tests
60+
run: ctest --output-on-failure ${{ steps.setup.outputs.ctest_args }}
61+
working-directory: builddir
62+
- name: Build Sphinx
63+
if: ${{ steps.setup.outputs.build_sphinx == 'true' }}
64+
run: cmake --build builddir --target doc
65+
- name: Test DESTDIR Install
66+
if: ${{ ! matrix.module_build }}
67+
run: DESTDIR=${PWD}/install cmake --build builddir --target install && rm -rf ${PWD}/install/usr && rmdir ${PWD}/install
68+
- name: Install
69+
run: sudo cmake --build builddir --target install
70+
- name: Check for untracked files
71+
run: git status --porcelain && git status --porcelain | sed Q1
72+
working-directory: votca/${{ steps.setup.outputs.module }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Forward
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- stable
7+
8+
jobs:
9+
VOTCA:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Update submodule
13+
uses: votca/actions/forward@master
14+
with:
15+
module: ${{ github.repository }}
16+
token: ${{ secrets.VOTCA_BOT_TOKEN }}
17+

.gitlab-ci.yml

Lines changed: 5 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
stages:
2-
- canary
32
- build
43

54
.build_script:
@@ -35,13 +34,14 @@ stages:
3534
- pushd build
3635
- cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTING=ON -DBUILD_XTP=ON -DENABLE_WERROR=ON
3736
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
37+
${CMAKE_GENERATOR:+-G${CMAKE_GENERATOR}}
3838
-DMODULE_BUILD=${MODULE_BUILD} ${MODULE_BUILD:+-DCMAKE_INSTALL_PREFIX=/home/votca/votca.install}
39-
-DWITH_MKL=${WITH_MKL} -DCMAKE_DISABLE_FIND_PACKAGE_MKL=${DISABLE_MKL}
39+
-DCMAKE_DISABLE_FIND_PACKAGE_MKL=${DISABLE_MKL}
4040
-DUSE_CUDA=${USE_CUDA}
41-
- cmake --build . -- -j2
41+
- cmake --build . --parallel 2
4242
- ctest --output-on-failure
43-
- test -z "${MODULE_BUILD}" && DESTDIR=${PWD}/install cmake --build . --target install && rm -rf ${PWD}/install/usr && rmdir ${PWD}/install
44-
- sudo cmake --build . --target install
43+
- test -z "${MODULE_BUILD}" && DESTDIR=${PWD}/install cmake --install . && rm -rf ${PWD}/install/usr && rmdir ${PWD}/install
44+
- sudo cmake --install .
4545
- if [[ ${CLANG_FORMAT} ]]; then cmake --build . --target format && git -C ${CI_PROJECT_DIR}/votca/${CI_PROJECT_NAME} diff --exit-code; fi
4646
- ccache -s
4747

@@ -51,135 +51,13 @@ stages:
5151
image: votca/buildenv:${DISTRO}
5252
extends: .build_script
5353

54-
Debug GCC:
55-
stage: canary
56-
variables:
57-
CC: "gcc"
58-
CXX: "g++"
59-
CMAKE_BUILD_TYPE: "Debug"
60-
CLANG_FORMAT: "yes"
61-
extends: .build
62-
63-
None GCC:
64-
variables:
65-
CC: "gcc"
66-
CXX: "g++"
67-
CMAKE_BUILD_TYPE: ""
68-
extends: .build
69-
70-
None Clang:
71-
variables:
72-
CC: "clang"
73-
CXX: "clang++"
74-
CMAKE_BUILD_TYPE: ""
75-
extends: .build
76-
77-
Debug Clang:
78-
variables:
79-
CC: "clang"
80-
CXX: "clang++"
81-
CMAKE_BUILD_TYPE: "Debug"
82-
extends: .build
83-
84-
Release GCC:
85-
variables:
86-
CC: "gcc"
87-
CXX: "g++"
88-
CMAKE_BUILD_TYPE: "Release"
89-
extends: .build
90-
91-
Release Clang:
92-
variables:
93-
CC: "clang"
94-
CXX: "clang++"
95-
CMAKE_BUILD_TYPE: "Release"
96-
extends: .build
97-
98-
Debug GCC Ubuntu:
99-
variables:
100-
CC: "gcc"
101-
CXX: "g++"
102-
CMAKE_BUILD_TYPE: "Debug"
103-
DISTRO: "ubuntu"
104-
extends: .build
105-
106-
Debug Clang Ubuntu:
107-
variables:
108-
CC: "clang"
109-
CXX: "clang++"
110-
CMAKE_BUILD_TYPE: "Debug"
111-
DISTRO: "ubuntu"
112-
extends: .build
113-
114-
Release GCC Ubuntu:
115-
variables:
116-
CC: "gcc"
117-
CXX: "g++"
118-
CMAKE_BUILD_TYPE: "Release"
119-
DISTRO: "ubuntu"
120-
extends: .build
121-
122-
Release Clang Ubuntu:
123-
variables:
124-
CC: "clang"
125-
CXX: "clang++"
126-
CMAKE_BUILD_TYPE: "Release"
127-
DISTRO: "ubuntu"
128-
extends: .build
129-
130-
Debug GCC Rawhide:
131-
variables:
132-
CC: "gcc"
133-
CXX: "g++"
134-
CMAKE_BUILD_TYPE: "Debug"
135-
DISTRO: "fedora_rawhide"
136-
extends: .build
137-
allow_failure: true
138-
139-
Debug Clang Rawhide:
140-
variables:
141-
CC: "clang"
142-
CXX: "clang++"
143-
CMAKE_BUILD_TYPE: "Debug"
144-
DISTRO: "fedora_rawhide"
145-
extends: .build
146-
allow_failure: true
147-
148-
Release GCC Rawhide:
149-
variables:
150-
CC: "gcc"
151-
CXX: "g++"
152-
CMAKE_BUILD_TYPE: "Release"
153-
DISTRO: "fedora_rawhide"
154-
extends: .build
155-
allow_failure: true
156-
157-
Release Clang Rawhide:
158-
variables:
159-
CC: "clang"
160-
CXX: "clang++"
161-
CMAKE_BUILD_TYPE: "Release"
162-
DISTRO: "fedora_rawhide"
163-
extends: .build
164-
allow_failure: true
165-
166-
Release GCC Module:
167-
variables:
168-
CC: "gcc"
169-
CXX: "g++"
170-
CMAKE_BUILD_TYPE: "Release"
171-
MODULE_BUILD: "yes"
172-
extends: .build
173-
17454
Debug GPU Ubuntu:
17555
variables:
17656
CC: "gcc"
17757
CXX: "g++"
17858
CMAKE_BUILD_TYPE: "Debug"
17959
USE_CUDA: "yes"
180-
WITH_MKL: "no"
18160
DISABLE_MKL: "yes"
182-
NO_INSTALL: "yes"
18361
before_script:
18462
- source /opt/gromacs-2019/bin/GMXRC.bash
18563
extends: .build_script

.travis.yml

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

0 commit comments

Comments
 (0)