Skip to content

Commit 2942402

Browse files
committed
Clean up travis-ci testing and use sage from conda
1 parent 9aca480 commit 2942402

File tree

2 files changed

+17
-27
lines changed

2 files changed

+17
-27
lines changed

.travis.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,17 @@ env:
2525
## statement, so if the variable is not set, the other if branch will get
2626
## executed.
2727
matrix:
28-
## Out of tree builds (default):
28+
# Debug builds:
2929
- BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7" TRIGGER_FEEDSTOCK="yes"
30+
- BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="3.6"
3031

31-
## In-tree builds (we just check a few configurations to make sure they work):
32-
# Debug build with Python 2.7:
33-
- BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7"
34-
# Release build shared lib with Python 2.7:
32+
# Release builds:
3533
- PYTHON_VERSION="2.7" BUILD_SHARED_LIBS="yes"
36-
37-
# These test the setup.py file
38-
- PYTHON_VERSION="2.7" WITH_MPFR="yes" INTEGER_CLASS="gmp"
34+
- PYTHON_VERSION="2.7" WITH_MPFR="yes" INTEGER_CLASS="gmpxx"
3935
- PYTHON_VERSION="3.3" WITH_MPC="yes"
4036
- PYTHON_VERSION="3.4" WITH_MPFR="yes" WITH_NUMPY="yes"
41-
- PYTHON_VERSION="3.5" WITH_MPFR="yes" WITH_NUMPY="yes"
37+
- PYTHON_VERSION="3.5" WITH_MPC="yes" WITH_NUMPY="yes"
38+
- PYTHON_VERSION="3.6" WITH_MPC="yes" WITH_NUMPY="yes"
4239

4340
matrix:
4441
exclude:
@@ -81,13 +78,9 @@ matrix:
8178
- env: BUILD_TYPE="Release" PYTHON_VERSION="3.5"
8279
compiler: gcc
8380
os: osx
84-
- env: BUILD_TYPE="Release" WITH_SAGE="yes" WITH_MPC="yes"
81+
- env: BUILD_TYPE="Release" WITH_SAGE="yes" WITH_MPC="yes" PYTHON_VERSION="2.7"
8582
compiler: gcc
8683
os: linux
87-
addons:
88-
apt:
89-
packages:
90-
- lrzip
9184

9285
install:
9386
- export PYTHON_SOURCE_DIR=`pwd`
@@ -105,7 +98,7 @@ install:
10598

10699
# Setup travis for C++ library
107100
- cd $SOURCE_DIR
108-
- if [[ "${WITH_SAGE}" != "yes" ]]; then source bin/install_travis.sh; fi
101+
- source bin/install_travis.sh
109102

110103
# Build C++ library
111104
- cd $SOURCE_DIR

bin/install_travis.sh

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
#!/usr/bin/env bash
22

3-
if [[ "${WITH_SAGE}" != "yes" ]]; then
4-
# symengine's bin/install_travis.sh will install miniconda
5-
conda_pkgs="python=${PYTHON_VERSION} pip cython sympy nose pytest"
6-
if [[ "${WITH_NUMPY}" == "yes" ]]; then
7-
conda_pkgs="${conda_pkgs} numpy";
8-
fi
9-
else
10-
wget -O- https://dl.dropboxusercontent.com/u/46807346/sage-6.9-x86_64-Linux-Ubuntu_12.04_64_bit.tar.gz | tar xz
11-
SAGE_ROOT=`pwd`/sage-6.9-x86_64-Linux
12-
export PATH="$SAGE_ROOT:$PATH"
13-
source $SAGE_ROOT/src/bin/sage-env
14-
export our_install_dir=$SAGE_LOCAL
3+
# symengine's bin/install_travis.sh will install miniconda
4+
export conda_pkgs="python=${PYTHON_VERSION} pip cython sympy nose pytest"
5+
6+
if [[ "${WITH_NUMPY}" == "yes" ]]; then
7+
export conda_pkgs="${conda_pkgs} numpy";
8+
fi
9+
10+
if [[ "${WITH_SAGE}" == "yes" ]]; then
11+
export conda_pkgs="${conda_pkgs} sage";
1512
fi

0 commit comments

Comments
 (0)