forked from simgrid/simgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci-framasoft.yml
65 lines (60 loc) · 2.16 KB
/
.gitlab-ci-framasoft.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
image: simgrid/build-deps
stages:
- build
- deploy
# On framagit, we only run the tests for merge requests
build-MR:
stage: build
only:
- merge_requests
except:
- stable
script:
#- apt-get --allow-releaseinfo-change update
#- apt install -y binutils xsltproc
- cmake -Denable_model-checking=ON -Denable_documentation=OFF -Denable_coverage=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_testsuite_smpi_MPICH3=ON -Denable_testsuite_McMini=ON -Denable_compile_warnings=ON -DLTO_EXTRA_FLAG="auto" .
- make -j$(nproc) VERBOSE=1 all tests distcheck-configure
- ctest -T Test -j$(nproc) --output-on-failure
- xsltproc ./tools/jenkins/ctest2junit.xsl Testing/"$( head -n 1 < Testing/TAG )"/Test.xml > CTestResults.xml
artifacts:
reports:
junit:
- CTestResults.xml
expire_in: 1 week
when: always
# Build the doc and the webpage
pages:
stage: deploy
needs: [] # no dependency
script:
- echo "Building the python bindings (the doc needs them)"
- cmake -Denable_model-checking=OFF -Denable_documentation=OFF -Denable_coverage=OFF -Denable_compile_optimizations=OFF -Denable_smpi=ON .
- make -j$(nproc) VERBOSE=1 python-bindings
- echo "Building the doc"
- apt install -y python3-breathe python3-sphinx python3-sphinx-rtd-theme python3-sphinx-copybutton python3-sphinx-tabs
- cd docs
- LC_ALL=C.UTF-8 ./Build.sh
- mv build/html ../public
# - The CSS contains a reference to a font or something, not something we gonna fix on our side
# not installed - linkchecker --ignore-url='.*\.css$' ../public
# From time to time, we should check external links with the
# following, but it has a lot of false positive
# - linkchecker --ignore-url='.*\.css$' --check-extern ../public
artifacts:
paths:
- public
only:
- master
# Build a valid tar.gz
release-tgz:
stage: build
only:
- stable
script:
- apt-get --allow-releaseinfo-change update
- apt install -y binutils wget unzip zip
- cmake -Denable_documentation=OFF -Dminimal-bindings=ON -Denable_compile_optimizations=ON -Denable_smpi=OFF -DLTO_EXTRA_FLAG="auto" .
- make VERBOSE=1 -j$(nproc) dist
artifacts:
paths:
- simgrid-*.tar.gz