-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
68 lines (61 loc) · 1.92 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
image: carvicsforth/arch_carv:latest
stages:
- build
- deploy
build_gcc:
stage: build
script:
- mkdir -p build;cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug
- make all
build_clang:
stage: build
script:
- mkdir -p build;cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
- make all
build_clang-tidy:
stage: build
script:
- mkdir -p build;cd build
- cmake .. "-DCMAKE_C_CLANG_TIDY=/bin/clang-tidy;-checks=* --format-style=../.clang-format"
- make all
# install_kreon:
# image: carvicsforth/ubuntu_carv:latest
# stage: deploy
# variables:
# KREON_INSTALL_PATH : "installtest"
# script:
# - mkdir -p build;cd build
# - cmake .. -DKREON_BUILD_CPACK=True -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10
# - make install DESTDIR=$KREON_INSTALL_PATH;mv $KREON_INSTALL_PATH ../scripts/;cd ../scripts
# - ./verify-installed-files.py $KREON_INSTALL_PATH
automate-github-sync:
image: carvicsforth/ubuntu_carv:latest
stage: deploy
only:
- master
before_script:
- 'which ssh-agent || ( apt-get update -qy && apt-get install openssh-client -qqy )'
- eval `ssh-agent -s`
- echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PUBLIC_KEY" >> ~/.ssh/id_rsa.pub
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- git config --global user.email "${CI_EMAIL}"
- git config --global user.name "${CI_USERNAME}"
- git remote rm origin && git remote add origin [email protected]:CARV-ICS-FORTH/kreon.git
- git push origin HEAD:master
pre-commit:
stage: build
script:
- ./scripts/pre-commit-CI.sh
pre-merge:
stage: build
script:
- ./scripts/pre-merge-CI.sh
- ./scripts/commit-msg-lint.py
only:
- merge_requests