mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
gitlab-ci: hide modern whitespace attribute usage from old Git versions
The old Git doesn't understand our new `eol=` attribute usage, so make it not care about the difference.
This commit is contained in:
@@ -224,6 +224,11 @@
|
||||
- echo "CMake_TEST_INSTALL:BOOL=OFF" >> build/CMakeCache.txt
|
||||
- echo "CMAKE_INSTALL_PREFIX:PATH=$PWD/build/install" >> build/CMakeCache.txt
|
||||
- echo "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY:BOOL=ON" >> build/CMakeCache.txt
|
||||
# Appease Git. The Git in this container is old (1.7) and doesn't
|
||||
# understand some things. But, it doesn't need to, so make it blind.
|
||||
- mkdir -p .git/info
|
||||
- echo "* -crlf" >> .git/info/attributes
|
||||
- git reset --hard
|
||||
# Bootstrap
|
||||
- cd build/
|
||||
- '$LAUNCHER ../bootstrap --parallel=$(nproc) --docdir=doc/cmake -- "-DCMake_DOC_ARTIFACT_PREFIX=$CI_PROJECT_DIR/build/install-doc"'
|
||||
@@ -256,6 +261,11 @@
|
||||
- echo "CMake_TEST_INSTALL:BOOL=OFF" >> build/CMakeCache.txt
|
||||
- echo "CMAKE_INSTALL_PREFIX:PATH=$PWD/build/install" >> build/CMakeCache.txt
|
||||
- echo "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY:BOOL=ON" >> build/CMakeCache.txt
|
||||
# Appease Git. The Git in this container is old (1.7) and doesn't
|
||||
# understand some things. But, it doesn't need to, so make it blind.
|
||||
- mkdir -p .git/info
|
||||
- echo "* -crlf" >> .git/info/attributes
|
||||
- git reset --hard
|
||||
# Bootstrap
|
||||
- cd build/
|
||||
- "$LAUNCHER ../bootstrap --parallel=$(nproc) --docdir=doc/cmake"
|
||||
|
||||
Reference in New Issue
Block a user