forked from siconos/siconos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (67 loc) · 2.17 KB
/
.travis.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
# --- Travis config ---
# - runner os. Default on Travis is ubuntu16.04 -
dist: bionic # 18.04
# - services to start on the runner -
services:
- docker
# - Default language -
language: python
python: 3.7
sudo: required
# TASK line is of the form <config>:<parameters>
# where <config> is a known config in tasks.py
#
# A job will be created by Travis for each task in the list below.
#
# TASK line must be of the form <config>:<parameters>
# where :
# - <config> is a known config in tasks.py
# - <parameters> is a list (comma separated) of parameters, each of them being of
# the form <kwd>=<value> or <kwd>+=<values> or <kwd>-=<values>.
#
# With:
# - <kwd> is a named keyword accepted by ci_task.copy function
# - <value> can be:
# - a string
# - a list if ',' is present (i.e. "value," is the list [value] of one element)
#
# - <kwd>+= is the same as add_<kwd>=
# - <kwd>-= is the same as remove_<kwd>=
#
# If kwd is present several times, associated values must be lists. In
# this case a dictionary is incrementally built with the first element of the list as
# the key, and the remaining as the associated internal value. This
# concerns the targets keyword.
#
# Distributions are passed as lists of two elements, the first element
# is the name and the second the version.
env:
#- TASK=default:distrib=ubuntu,20.04
- TASK=default:distrib=ubuntu,18.04
#- TASK=default:distrib=debian,latest
- TASK=default:distrib=fedora,30
- TASK=default:pkgs+=lpsolve,
- TASK=default:ci_config=with_mumps_par:pkgs+=mumps-par,
- TASK=default:ci_config=with_umfpack:pkgs+=umfpack,
# not finalized yet
# - TASK=default:ci_config=nix:distrib=nixos/nix,latest:targets=.,docker-build,docker-cmd:pkgs=cmake,make,siconos-nix-default,
before_script:
- case $TASK in
*docker=false*)
pip install lxml;
pip install scipy
;;
*)
pip install pyyaml
;;
esac
- mkdir -p build
- cd build
script:
- ln -s ../ci_gitlab/ctest_driver_install_siconos.cmake ../ci_travis/
- env
- if test "$TRAVIS" = true; then
../ci_travis/driver.py --run --root-dir=.. --task="$TASK";
else
../ci_travis/driver.py --run --root-dir=..;
fi