-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOS-623 build: Resolve issues with Dockerfiles. (#6099)
Use pip3 --user and remove temp files. Do not install pandoc, curl, man or doxygen. Move leap15 to ci2. Install missing packages to run NLT in docker. Signed-off-by: Ashley Pittman <[email protected]>
- Loading branch information
1 parent
182ab7b
commit 537e2b7
Showing
11 changed files
with
58 additions
and
77 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
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
distro: [ubuntu.20.04, centos.8] | ||
distro: [ubuntu.20.04, centos.8, leap.15] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: satackey/[email protected] | ||
|
@@ -92,7 +92,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
# Run this on distros where we don't run the ci1 Workflow. | ||
distro: [ubuntu.20.04, centos.8] | ||
distro: [ubuntu.20.04, centos.8, leap.15] | ||
compiler: [clang, gcc] | ||
steps: | ||
- name: Checkout code | ||
|
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 |
---|---|---|
|
@@ -13,13 +13,5 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 100 | ||
- name: Install software | ||
run: sudo apt-get install doxygen | ||
- name: Check files | ||
- name: Run check | ||
run: ./ci/copy_doxygen_files.sh | ||
- name: Add problem matcher | ||
run: echo ::add-matcher::ci/daos-doxygen-matcher.json | ||
- name: Run | ||
run: doxygen Doxyfile | ||
- name: Remove matcher | ||
run: echo "::remove-matcher owner=daos-doxygen::" |
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,31 +1,44 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
# Prepare the source tree for Doxygen, see .github/workflows/doxygen.yml | ||
# Script to run doxygen against modified headers and report results. | ||
# see .github/workflows/doxygen.yml | ||
|
||
set -ex | ||
set -e | ||
|
||
echo ::group::Setting up src | ||
|
||
# Load the list of modified files. | ||
git fetch | ||
git branch -lr | ||
FILES=$(git diff --name-only origin/master... src/include) | ||
mapfile -t FILES < <(git diff --name-only origin/master... src/include/*.h) | ||
|
||
# Ensure there is at least one file present in new dir. | ||
if [ ${#FILES[@]} -eq 0 ]; | ||
then | ||
echo No headers modified, exiting. | ||
echo ::endgroup:: | ||
exit 0 | ||
fi | ||
|
||
# Create a new temp directory. | ||
# Make a new directory. | ||
mkdir src/include2 | ||
|
||
# Copy modified files into it. | ||
for FILE in $FILES | ||
do | ||
cp "$FILE" ./src/include2 | ||
done | ||
# Copy the files to new dir. | ||
cp "${FILES[@]}" ./src/include2 | ||
|
||
# Move real path aside. | ||
# Move the real files aside | ||
mv src/include src/include.old | ||
|
||
# And place the modified ones back in place. | ||
# Move in the ones to test. | ||
mv src/include2 src/include | ||
|
||
# Ensure there is at least one file present. | ||
if [ -f src/include.old/daos.h ] | ||
then | ||
mv src/include.old/daos.h src/include | ||
fi | ||
echo ::endgroup:: | ||
|
||
echo ::group::Installing doxygen | ||
sudo apt-get install doxygen | ||
echo ::endgroup:: | ||
|
||
echo ::group::Running check | ||
echo ::add-matcher::ci/daos-doxygen-matcher.json | ||
doxygen Doxyfile | ||
echo ::remove-matcher owner=daos-doxygen:: | ||
echo ::endgroup:: |
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
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
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
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