lw12/.gitlab-ci.yml

29 lines
725 B
YAML
Raw Normal View History

2017-08-27 20:08:53 +02:00
# This file is a template, and might need editing before it works on your project.
# use the official gcc image, based on debian
# can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
image: gcc
2017-08-28 12:06:25 +02:00
stages:
- build
2017-08-27 20:16:21 +02:00
2017-08-27 20:08:53 +02:00
build:
stage: build
2017-08-28 12:01:44 +02:00
tags:
- gcc
2017-08-27 20:08:53 +02:00
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
before_script:
- apt update && apt -y install libreadline-dev
2017-08-28 13:51:03 +02:00
script:
2017-08-28 13:53:31 +02:00
- gcc lw12.c lw12ctl.c -o lw12ctl
2017-08-27 20:08:53 +02:00
artifacts:
paths:
- lw12ctl
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
2017-08-28 12:06:25 +02:00
cache:
paths:
- "*.o"
only:
- tags