Commit 208dfde9 authored by ndenoyelle's avatar ndenoyelle Committed by Swann Perarnau
Browse files

[ci/fix] ensure we test out-of-tree builds

Out-of-tree builds are popular when one doesn't want to pollute the
source tree with objects. It also helps debug build setup issues.
parent e722fcca
...@@ -30,8 +30,8 @@ make:generic: ...@@ -30,8 +30,8 @@ make:generic:
variables: variables:
CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter" CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter"
script: script:
- ./autogen.sh
- mkdir build - mkdir build
- ./autogen.sh
- ./configure --prefix=`pwd`/build - ./configure --prefix=`pwd`/build
- make - make
- make check - make check
...@@ -42,6 +42,25 @@ make:generic: ...@@ -42,6 +42,25 @@ make:generic:
- config.log - config.log
- tests/*.log - tests/*.log
make:out-of-tree:
stage: build
except:
- /^wip.*/
- /^WIP.*/
variables:
CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter"
script:
- mkdir out
- cd out
- ../configure
- make
- make check
artifacts:
when: on_failure
paths:
- config.log
- tests/*.log
make:knl: make:knl:
stage: build stage: build
except: except:
...@@ -60,6 +79,7 @@ make:knl: ...@@ -60,6 +79,7 @@ make:knl:
artifacts: artifacts:
when: on_failure when: on_failure
paths: paths:
- config.log
- tests/*.log - tests/*.log
readthedocs: readthedocs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment