-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
109 lines (94 loc) · 2.2 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
#
# Copyright Jean-Charles Lambert, 2018-2019
#
# - YAML file for Continous Integration / Continous Deployement
# - unsio and python-unsio packages (RPM or DEB) are automatically
# generated at new commit for different linux distribution
# - add manylinux building for python-module
#
# - Documentation :
# https://docs.gitlab.com/ee/ci/yaml/
stages:
- build
# - sonar_scanner
variables :
WHEEL : 0
OSX : 0
TEST : 1
# TESTPYPI : 0
# PYPI : 0
# TESTPYPIOSX : 0
# PYPIOSX : 0
#before_script:
# clone
#- git clone https://gitlab.lam.fr/vpicouet/DS9functions.git
#- cd DS9functions
#
# BUILD wheels for all linux flavors/python
#
sonar_scanner:
stage: build #sonar_scanner
tags:
- docker
only:
# - develop
variables:
- $TEST == "1"
image: sonarsource/sonar-scanner-cli:latest
script:
- sonar-scanner -Dsonar.projectKey=pyds9plugin
-Dsonar.host.url=https://sonarqube.lam.fr
-Dsonar.sources=pyds9plugin/DS9Utils.py
-Dsonar.login=$login
-Dsonar.python.coverage.reportPaths=report/coverage.xml
-Dsonar.python.xunit.reportPath=report/pytest.xml
# -Dsonar.exclusions="src/svom_api_import/tests/*"
allow_failure: true
manylinux2010 :
stage : build
# image : portus.lam.fr/jclamber/unsio-manylinux2010
image : portus.lam.fr/vpicouet/pyds9quicklook-many-linux
only :
variables:
- $WHEEL == "1"
script:
# build
#- CI/script/build-DS9function.sh
- CI/script/build-wheel.sh
- /opt/python/cp37-cp37m/bin/python setup.py bdist -d wheel
#- CI/script/repair-wheel.sh
#- /opt/python/cp37-cp37m/bin/python setup.py sdist -d wheel
#- CI/script/test-unsio.sh
cache:
key: manylinux2010
paths:
- dist/
artifacts:
name: "manylinux2010"
paths:
# - test-*.res
- dist/*
expire_in: 1 week
#
# BUILD wheels for macosx
#
OSX:
stage : build
tags:
- osx_10.13.6
only :
variables:
- $OSX == "1"
script:
# build
- chmod +x CI/scriptOSX/build-wheel.sh
- CI/scriptOSX/build-wheel.sh
cache:
key: osx
paths:
- dist/
artifacts:
name: "osx-wheel"
paths:
- dist/*
expire_in: 1 week