vengi/.gitlab-ci.yml

55 lines
921 B
YAML
Raw Permalink Normal View History

2017-09-22 12:36:32 -07:00
stages:
- build
- test
variables:
CCACHE_BASEDIR: ${CI_PROJECT_DIR}
CCACHE_DIR: ${CI_PROJECT_DIR}/ccache
BUILD_DIR: ${CI_PROJECT_DIR}/build
2017-09-22 12:36:32 -07:00
2020-08-02 05:06:07 -07:00
.buildcache: &buildcache
cache:
key: ${CI_JOB_NAME}-cache
paths:
- ccache/
- build/
2017-09-22 12:36:32 -07:00
2021-04-27 14:35:29 -07:00
.build: &build
image: registry.gitlab.com/vengi/build-images/${CI_JOB_NAME}:master
2017-09-22 12:36:32 -07:00
stage: build
script:
2021-04-27 14:35:29 -07:00
- cmake -H. -B${BUILD_DIR}
2020-08-02 05:07:14 -07:00
- make -j 4 all -C ${BUILD_DIR}
2021-04-27 14:35:29 -07:00
osx-x86_64:
2020-08-02 05:06:07 -07:00
<<: *buildcache
2021-04-27 14:35:29 -07:00
<<: *build
mxe:
<<: *buildcache
<<: *build
debian:
<<: *buildcache
<<: *build
2017-09-22 12:36:32 -07:00
2019-08-08 03:05:31 -07:00
.test:
variables:
POSTGRES_DB: enginetest
POSTGRES_USER: engine
POSTGRES_PASSWORD: engine
DB_HOST: postgres
DB_USER: engine
DB_PASSWORD: engine
DB_NAME: enginetest
services:
- postgres:latest
2017-09-22 12:36:32 -07:00
stage: test
dependencies:
- build
script:
- make -j 4 tests-run
2018-10-27 02:17:35 -07:00
artifacts:
reports:
junit: build/*/gtest.xml