Merge branch 'master' of git.goatpr0n.de:jpk/lw12

* 'master' of git.goatpr0n.de:jpk/lw12:
  Update .gitlab-ci.yml: cmake added
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml / Fixed Type
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
  Update .gitlab-ci.yml
This commit is contained in:
jpk 2017-08-28 19:08:43 +02:00
commit d52270aaeb
1 changed files with 14 additions and 20 deletions

View File

@ -1,32 +1,26 @@
# This file is a template, and might need editing before it works on your project. # Use the official gcc image, based on debian
# use the official gcc image, based on debian
# can use verions as well, like gcc:5.2 # can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/ # see https://hub.docker.com/_/gcc/
image: gcc image: gcc
trigger_build: stages:
stage: deploy - build
script:
- "curl -X POST -F token=-nr2owgsfXRbWXHByiv3 -F ref=REF_NAME https://git.goatpr0n.de/api/v4/projects/46/trigger/pipeline"
build: build:
stage: build stage: build
# instead of calling g++ directly you can also use some build toolkit like make tags:
# install the necessary build tools when needed - gcc
before_script: before_script:
- apt update && apt -y install libreadline-dev - apt update && apt -y install libreadline-dev cmake
script: script:
- gcc lw12.c lw12ctl -o lw12ctl - cmake .
- make
artifacts: artifacts:
paths: paths:
- lw12ctl - lw12ctl
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
# cache: cache:
# paths: paths:
# - "*.o" - "*.o"
only:
# run tests using the binary built before - tags
#test:
# stage: test
# script:
# - ./runmytests.sh