Skip to content

Commit

Permalink
travis: fix test environment installation
Browse files Browse the repository at this point in the history
The CLIPS source zip seems corrupted.

Fetch CLIPS package from Debian Unstable.

Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Mar 4, 2018
1 parent 06a78fe commit a77c4ce
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .travis_install.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
#!/bin/bash

WORK_DIR=$(pwd)
CLIPS_DIR=$WORK_DIR/clips_core_source_630
DOWNLOAD_URL="https://downloads.sourceforge.net/project/clipsrules/CLIPS/6.30/clips_core_source_630.zip"
echo "deb http://ftp.se.debian.org/debian/ sid main" >> /etc/apt/sources.list

wget -O clips.zip $DOWNLOAD_URL

unzip clips.zip

cd $CLIPS_DIR

cp makefiles/makefile.lib core/Makefile

cd $CLIPS_DIR/core/

sed -i 's/gcc -c/gcc -fPIC -c/g' Makefile

make

ld -G *.o -o libclips.so

cd $WORK_DIR
sudo apt update
sudo apt install -t sid libclips libclips-dev

sudo pip install --upgrade pip
sudo pip install --upgrade setuptools
Expand Down

0 comments on commit a77c4ce

Please sign in to comment.