File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 26
26
# # executed.
27
27
matrix :
28
28
# Debug builds:
29
- - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7" TRIGGER_FEEDSTOCK="yes"
30
- - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="3.6"
29
+ - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7" TRIGGER_FEEDSTOCK="yes" TEST_SYMPY="yes"
30
+ - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="3.6" TEST_SYMPY="yes"
31
31
32
32
# Release builds:
33
33
- PYTHON_VERSION="2.7" BUILD_SHARED_LIBS="yes"
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ if [[ "${WITH_SYMPY}" != "no" ]]; then
9
9
export conda_pkgs=" ${conda_pkgs} sympy" ;
10
10
fi
11
11
12
+ if [[ " ${TEST_SYMPY} " == " yes" ]]; then
13
+ export TEST_SYMPY = 1;
14
+ fi
15
+
12
16
if [[ " ${WITH_NUMPY} " != " no" ]]; then
13
17
export conda_pkgs=" ${conda_pkgs} numpy" ;
14
18
fi
Original file line number Diff line number Diff line change
1
+ import os
2
+ TEST_SYMPY = os .getenv ('TEST_SYMPY' , '0' )
3
+
1
4
import symengine
2
5
if not symengine .test ():
3
6
raise Exception ('Tests failed' )
7
+
8
+ try :
9
+ import sympy
10
+ from sympy .core .cache import clear_cache
11
+ import atexit
12
+
13
+ atexit .register (clear_cache )
14
+ have_sympy = True
15
+ except ImportError :
16
+ have_sympy = False
17
+
18
+ if TEST_SYMPY and have_sympy :
19
+ print ('Testing SYMPY' )
20
+ if not sympy .test ('sympy/physics/mechanics' ):
21
+ raise Exception ('Tests failed' )
22
+ if not sympy .test ('sympy/liealgebras' ):
23
+ raise Exception ('Tests failed' )
You can’t perform that action at this time.
0 commit comments