forked from gnu-octave/symbolic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (76 loc) · 4.19 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
76
77
78
79
80
81
82
83
## SPDX-License-Identifier: FSFAP
## Copyright (C) 2014-2019 Colin B. Macdonald
## Copyright (C) 2016-2017 Abhinav Tripathi
## Copyright (C) 2016 Marco Falke
## Copyright (C) 2016-2019 Mike Miller
##
## Copying and distribution of this file, with or without modification,
## are permitted in any medium without royalty provided the copyright
## notice and this notice are preserved. This file is offered as-is,
## without any warranty.
##
## .travis.yml - Travis CI configuration for Octave's Symbolic package
dist: xenial
language: generic
services:
- docker
matrix:
include:
- env: PYVER=2 PYTHONIC=no SYMPY=1.2 OCT=4.2 MPMATH=1.0 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=no SYMPY=1.2 OCT=4.2 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=no SYMPY=1.3 OCT=4.4 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=no SYMPY=1.4 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=no SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=no SYMPY=1.2 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=no SYMPY=1.3 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=no SYMPY=1.4 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=no SYMPY=1.5.1 OCT=4.2 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=no SYMPY=1.5.1 OCT=4.4 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=no SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=no SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=yes SYMPY=1.5.1 OCT=4.4 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=yes SYMPY=1.5.1 OCT=4.4 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=yes SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=yes SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=yes SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=yes SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=dev SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=dev SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=dev SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=dev SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
allow_failures:
- env: PYVER=3 PYTHONIC=no SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=yes SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=yes SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=dev SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=dev SYMPY=1.5.1 OCT=devel MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=3 PYTHONIC=dev SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
- env: PYVER=2 PYTHONIC=dev SYMPY=1.5.1 OCT=5 MPMATH=1.1 DOCTEST=yes COLUMNS=80
before_install:
- docker pull mtmiller/octave:${OCT}
- docker run --name=oc --detach --init --env=LC_ALL=C.UTF-8 --env=PYTHON_VERSION=${PYVER} --env=PYTHON=python${PYVER} --volume=$PWD:/octsympy:z mtmiller/octave:${OCT} sleep inf
install:
- docker exec oc pip${PYVER} install mpmath==${MPMATH}
- docker exec oc pip${PYVER} install sympy==${SYMPY}
- if [ "x$DOCTEST" = "xyes" ]; then
docker exec oc octave --eval "pkg install -forge doctest";
fi
- if [ "x$PYTHONIC" = "xyes" ]; then
docker exec oc octave --eval "pkg install https://octave-pythonic-downloads.s3.amazonaws.com/releases/octave-pythonic-0.0.1.tar.gz";
fi
- if [ "x$PYTHONIC" = "xdev" ]; then
docker exec oc octave --eval "pkg install https://gitlab.com/mtmiller/octave-pythonic/-/archive/master/octave-pythonic-master.tar.gz";
fi
- if [ "x$PYTHONIC" != "xno" ]; then
docker exec oc bash -c "echo 'pkg load pythonic' >> ~/.octaverc";
fi
script:
- stty cols $COLUMNS rows 40
- tput cols; stty size
- docker exec oc make -C octsympy test;
- docker exec oc cat octsympy/fntests.log
- if [ "x$DOCTEST" = "xyes" ]; then
docker exec oc make -C octsympy doctest;
fi
after_script:
- docker stop oc