-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
111 lines (103 loc) · 3.04 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
stages:
- compile
- package
build-ubuntu:
stage: compile
image: burningdaylight/ubuntu-latest-devel
script:
- mkdir -p ${CI_BUILD_NAME}
- rm -f ${CI_BUILD_NAME}/src/gui/Olga ${CI_BUILD_NAME}/src/gui/main.o
- find ${CI_BUILD_NAME} -name "Makefile*" -delete
- cd ${CI_BUILD_NAME}; qmake ..; make
cache:
paths:
- ${CI_BUILD_NAME}/
artifacts:
expire_in: 1 day
paths:
- ${CI_BUILD_NAME}/src/gui/Olga
- ${CI_BUILD_NAME}/src/bestpairs/bestpairs
- ${CI_BUILD_NAME}/src/av2restraints/av2restraints
- ${CI_BUILD_NAME}/src/screen-nox/screen-nox
- ${CI_BUILD_NAME}/src/irmsd/libirmsd.so.1.0.0
build-win64:
stage: compile
image: burningdaylight/mingw-arch-mol
script:
- mkdir -p ${CI_BUILD_NAME}
- rm -f ${CI_BUILD_NAME}/src/gui/release/Olga.exe ${CI_BUILD_NAME}/src/gui/release/main.o
- find ${CI_BUILD_NAME} -name "Makefile*" -delete
- cd ${CI_BUILD_NAME}; x86_64-w64-mingw32-qmake-qt5 ..; make
cache:
paths:
- ${CI_BUILD_NAME}/
artifacts:
expire_in: 1 day
paths:
- ${CI_BUILD_NAME}/src/gui/release/Olga.exe
- ${CI_BUILD_NAME}/src/bestpairs/release/bestpairs.exe
- ${CI_BUILD_NAME}/src/av2restraints/release/av2restraints.exe
- ${CI_BUILD_NAME}/src/screen-nox/release/screen-nox.exe
- ${CI_BUILD_NAME}/src/irmsd/release/irmsd.dll
build-win32:
stage: compile
image: burningdaylight/mingw-arch-mol
script:
- mkdir -p ${CI_BUILD_NAME}
- rm -f ${CI_BUILD_NAME}/src/gui/release/Olga.exe ${CI_BUILD_NAME}/src/gui/release/main.o;
- find ${CI_BUILD_NAME} -name "Makefile*" -delete
- cd ${CI_BUILD_NAME}; i686-w64-mingw32-qmake-qt5 ..; make
cache:
paths:
- ${CI_BUILD_NAME}/
artifacts:
expire_in: 1 day
paths:
- ${CI_BUILD_NAME}/src/gui/release/Olga.exe
- ${CI_BUILD_NAME}/src/bestpairs/release/bestpairs.exe
- ${CI_BUILD_NAME}/src/av2restraints/release/av2restraints.exe
- ${CI_BUILD_NAME}/src/screen-nox/release/screen-nox.exe
- ${CI_BUILD_NAME}/src/irmsd/release/irmsd.dll
pack-ubuntu:
stage: package
image: burningdaylight/ubuntu-latest-devel
script:
- ./src/pack_ubuntu.sh build-ubuntu Olga
dependencies:
- build-ubuntu
needs: ["build-ubuntu"]
artifacts:
expire_in: 1 week
name: "Olga_ubuntu_${CI_BUILD_REF_NAME}-${CI_BUILD_REF:0:8}"
paths:
- Olga
pack-win64:
stage: package
image: burningdaylight/mingw-arch-mol
script:
- ./src/pack_mingw.sh build-win64 /usr/x86_64-w64-mingw32 Olga
dependencies:
- build-win64
needs: ["build-win64"]
artifacts:
name: "Olga_win64_${CI_BUILD_REF_NAME}-${CI_BUILD_REF:0:8}"
expire_in: 1 week
paths:
- Olga
pack-win32:
stage: package
image: burningdaylight/mingw-arch-mol
script:
- ./src/pack_mingw.sh build-win32 /usr/i686-w64-mingw32 Olga
dependencies:
- build-win32
needs: ["build-win32"]
artifacts:
expire_in: 1 week
name: "Olga_win32_${CI_BUILD_REF_NAME}-${CI_BUILD_REF:0:8}"
paths:
- Olga
#test:
# stage: test
# script:
# - ./runmytests.sh