-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
58 lines (51 loc) · 1.31 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
# GL2PS, an OpenGL to PostScript Printing Library
# Copyright (C) 1999-2017 C. Geuzaine
variables:
EXTRA_VERSION: "-git-$CI_COMMIT_SHA"
.ssh_config: &ssh_config
before_script:
- echo "$SSH_TOKEN" > ~/.ssh/id_rsa
- echo "Host *" > ~/.ssh/config
- echo "StrictHostKeyChecking no" >> ~/.ssh/config
- chmod 700 ~/.ssh/id_rsa ~/.ssh/config
# -----------------------
# Builds for all branches
# -----------------------
linux64_docker:
image: onelab/ubuntu18.10
script:
- mkdir build
- cd build
- cmake -DGL2PS_EXTRA_VERSION=${EXTRA_VERSION:0:13} ..
- make -j 4
tags:
- linux64
- docker
windows64_msvc:
script:
- md build
- cd build
- cmake -DGL2PS_EXTRA_VERSION=%EXTRA_VERSION:~0,13% ..
- msbuild package.vcxproj
tags:
- windows64
- official
# ----------------------------------------------
# Official source snapshots (master branch only)
# ----------------------------------------------
source_official:
image: onelab/ubuntu18.10
only:
- master@gl2ps/gl2ps
<<: *ssh_config
script:
- mkdir build
- cd build
- cmake -DGL2PS_EXTRA_VERSION=${EXTRA_VERSION:0:13} ..
- make
- make package_source
- PKG=`ls gl2ps-*.tar*`
- scp ${PKG} [email protected]:.www/gl2ps/src/${PKG/\.tar\.gz/\.tgz}
tags:
- linux64
- docker