Skip to content

Commit 3a8c04a

Browse files
videlecjdemeyer
authored andcommitted
simpler travis script
1 parent 8bb97a7 commit 3a8c04a

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.travis-install-pari.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,16 @@
33
# Exit on error
44
set -e
55

6+
PARI_URL="http://pari.math.u-bordeaux.fr/pub/pari/$URLDIR"
7+
68
# Figure out PARI version and download location
79
# Note that we support giving a list of URLs
810
if [ "$PARI_VERSION" = snapshot ]; then
9-
PARI_VERSION=$(wget -qO- "http://pari.math.u-bordeaux.fr/pub/pari/snapshots" | sed -n 's/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/p')
10-
URL="http://pari.math.u-bordeaux.fr/pub/pari/snapshots"
11-
else
12-
URL="http://pari.math.u-bordeaux.fr/pub/pari/unix http://pari.math.u-bordeaux.fr/pub/pari/unstable"
11+
PARI_VERSION=$(wget -qO- "$PARI_URL" | sed -n 's/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/p')
1312
fi
1413

1514
# Download PARI sources
16-
for url in $URL; do
17-
if wget --no-verbose "$url/$PARI_VERSION.tar.gz"; then
18-
# Success
19-
break
20-
fi
21-
done
15+
wget --no-verbose "$PARI_URL/$PARI_VERSION.tar.gz"
2216

2317
# Install
2418
tar xzf "$PARI_VERSION.tar.gz"

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ python:
1212
- "3.6"
1313
env:
1414
- PARI_VERSION=pari-2.8.1.beta
15+
URLDIR=unstable
1516
- PARI_VERSION=pari-2.9.3
17+
URLDIR=unix
1618
- PARI_VERSION=snapshot
19+
URLDIR=snapshots
20+
1721
before_install:
1822
- export PATH="/usr/lib/ccache:$PATH"
1923
- ccache -M 256M && ccache -s

0 commit comments

Comments
 (0)