Travis: ensure the requested language version is being tested

The various Python versions were not being tested
This commit is contained in:
William S Fulton 2016-01-28 23:09:32 +00:00
commit 97c138dbd8
3 changed files with 11 additions and 4 deletions

View file

@ -11,6 +11,8 @@ else
sudo apt-get -qq install libboost-dev
fi
WITHLANG=$SWIGLANG
case "$SWIGLANG" in
"") ;;
"csharp")
@ -75,11 +77,12 @@ case "$SWIGLANG" in
if [[ "$PY3" ]]; then
sudo apt-get install -qq python3-dev
fi
WITHLANG=$SWIGLANG$PY3
if [[ "$VER" ]]; then
sudo add-apt-repository -y ppa:fkrull/deadsnakes
sudo apt-get -qq update
sudo apt-get -qq install python${VER}-dev
CONFIGOPTS+=("--with-python${PY3}=python${VER}");
WITHLANG=$SWIGLANG$PY3=$SWIGLANG$VER
fi
;;
"r")
@ -87,11 +90,11 @@ case "$SWIGLANG" in
;;
"ruby")
if [[ "$VER" ]]; then
sudo apt-get install python-software-properties
sudo apt-get -qq install python-software-properties
sudo add-apt-repository -y ppa:brightbox/ruby-ng
sudo apt-get -qq update
sudo apt-get -qq install ruby2.3 ruby2.3-dev
CONFIGOPTS+=("--with-ruby=ruby${VER}");
WITHLANG=$SWIGLANG=$SWIGLANG$VER
fi
;;
"scilab")

View file

@ -4,6 +4,9 @@ brew update
brew list
brew install pcre
# brew install boost
WITHLANG=$SWIGLANG
case "$SWIGLANG" in
"csharp")
brew install https://s3.amazonaws.com/travisbuilds.swig.org/mono.rb
@ -15,6 +18,7 @@ case "$SWIGLANG" in
brew install lua
;;
"python")
WITHLANG=$SWIGLANG$PY3
if [[ "$PY3" ]]; then
brew install python3
brew list -v python3