2017-08-28 13:57:58 +02:00
|
|
|
# Use the official gcc image, based on debian
|
2017-08-27 20:08:53 +02:00
|
|
|
# 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
|
|
|
|
before_script:
|
2017-08-28 14:05:12 +02:00
|
|
|
- apt update && apt -y install libreadline-dev cmake
|
2017-08-28 13:51:03 +02:00
|
|
|
script:
|
2017-08-28 14:05:12 +02:00
|
|
|
- cmake .
|
|
|
|
- make
|
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"
|