Skip to content
Snippets Groups Projects
Commit 0c355de4 authored by Oliver Smith's avatar Oliver Smith Committed by Martijn Braam
Browse files

Replace Travis config with gitlab-ci config

parent 0447e2da
No related branches found
No related tags found
No related merge requests found
---
image: alpine:3.8
before_script:
- apk add cppcheck build-base linux-headers sdl2-dev sdl2_ttf-dev cryptsetup-dev
stages:
- test
- build
static-analysis:
stage: test
script:
- test/static_analysis.sh
build::amd64:
stage: build
script:
- make
artifacts:
paths:
- bin/
\ No newline at end of file
language: c++
dist: trusty
sudo: required
notifications:
email: false
cache:
directories:
- $HOME/cppcheck
before_install:
- .travis/install_cppcheck
- .travis/install_nsiqcppstyle
script:
- test/static_analysis.sh
- test/lint_analysis.sh
#! /bin/bash
set -e
dir=$HOME/cppcheck
ver=1.81
[ ! -d "$dir/.git" ] && git clone --single-branch --depth=1 --branch $ver https://github.com/danmar/cppcheck.git $dir
cd $dir
sudo make -j 4 install CFGDIR="/usr/share/cppcheck" CXXFLAGS="-O2 -march=native -mtune=native -Wunreachable-code"
cd -
#!/bin/bash
set -e
dir=$HOME/nsiqcppstyle
git clone https://github.com/craftyguy/nsiqcppstyle.git $dir
#!/bin/bash #!/bin/sh
set -e set -e
files=$(find . -name "*.cpp") files=$(find . -name "*.cpp")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment