mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
# 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
|
|
|
|
stages:
|
|
- build
|
|
|
|
build:
|
|
stage: build
|
|
# instead of calling g++ directly you can also use some build toolkit like make
|
|
# install the necessary build tools when needed
|
|
before_script:
|
|
- "echo 'deb http://httpredir.debian.org/debian jessie main contrib \n deb-src http://httpredir.debian.org/debian jessie main contrib \n deb http://httpredir.debian.org/debian jessie-updates main contrib \n deb-src http://httpredir.debian.org/debian jessie-updates main contrib \n deb http://security.debian.org/ jessie/updates main contrib \n deb-src http://security.debian.org/ jessie/updates main contrib ' > /etc/apt/source.list"
|
|
- "apt-get update"
|
|
- "apt -y install build-essential git imagemagick libx11-dev libxext-dev libfreetype6-dev libpng-dev libjpeg-dev pkg-config fltk1.3-dev gcc-arm-none-eabi"
|
|
script:
|
|
- make clean
|
|
- make
|
|
#artifacts:
|
|
# paths:
|
|
# - mybinary
|
|
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
|
|
# cache:
|
|
# paths:
|
|
# - "*.o"
|
|
|
|
# run tests using the binary built before
|
|
#test:
|
|
# stage: test
|
|
# script:
|
|
# - ./runmytests.sh
|