Commit 0ec0a7c9 authored by Amos Wenger's avatar Amos Wenger

Add gitlab ci config

parent c3059724
Pipeline #18 failed with stage
stages:
- test
test:windows:386:
stage: test
tags:
- windows
script:
- export CI_ARCH=386
- scripts/ci.sh
test:windows:amd64:
stage: test
tags:
- windows
script:
- export CI_ARCH=amd64
- scripts/ci.sh
#!/bin/sh -xe
7za | head -2
gcc -v
cppcheck --error-exitcode=1 src
export ELEVATE_VERSION=head
if [ -n "$CI_BUILD_TAG" ]; then
export ELEVATE_VERSIOn=$CI_BUILD_TAG
fi
export ELEVATE_CFLAGS="-DELEVATE_VERSION=\\\"$ELEVATE_VERSION\\\""
if [ "$CI_ARCH" = "amd64" ]; then
export PATH=/mingw64/bin:$PATH
else
export PATH=/mingw32/bin:$PATH
fi
make
file elevate.exe
if [ -n "$CI_BUILD_TAG" ]; then
7za a elevate.7z elevate.exe
echo $CI_BUILD_TAG > LATEST
fi
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