Commit 5cc0815d authored by Wouter's avatar Wouter

Initial CI file to auto-package the mod

parent a7091500
Pipeline #342 failed with stages
in 2 minutes and 29 seconds
image: python:3.7.0
variables:
DEBIAN_FRONTEND: noninteractive
stages:
- build
- install
- package
build:
stage: build
script:
- apt-get update
- apt-get install -y cmake
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR}/install ..
- make
artifacts:
paths:
- build
expire_in: 1 week
install:
stage: install
script:
- cd build
- make install
artifacts:
paths:
- install
expire_in: 1 week
package:zip:
stage: package
script:
- apt-get update
- apt-get install -y zip
- cd install
- zip -r ../TS4RemoteControl-${CI_COMMIT_REF_SLUG}.zip *
artifacts:
paths:
- TS4RemoteControl-${CI_COMMIT_REF_SLUG}.zip
package:tar:
stage: package
script:
- cd install
- tar cf ../TS4RemoteControl-${CI_COMMIT_REF_SLUG}.tar.gz *
artifacts:
paths:
- TS4RemoteControl-${CI_COMMIT_REF_SLUG}.tar.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment