From 61b4bed49b16dc74a9e46645619efdda2f10ef70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Wed, 2 May 2018 12:53:07 +0200 Subject: [PATCH] travis: put dependency versions in variables --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b66888..f4a0b90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,12 +12,14 @@ addons: env: # install dependencies under $HOME because we don't have sudo - DEPENDENCY_DIR="$HOME/dependencies" \ - PKG_CONFIG_PATH="$DEPENDENCY_DIR/lib/pkgconfig:$PKG_CONFIG_PATH" + PKG_CONFIG_PATH="$DEPENDENCY_DIR/lib/pkgconfig:$PKG_CONFIG_PATH" \ + SODIUM_VERSION=1.0.16 \ + TOXCORE_VERSION=0.2.1 install: # install libsodium, required by libtoxcore - mkdir libsodium && pushd libsodium - && curl -fSsL "https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz" + && curl -fSsL "https://download.libsodium.org/libsodium/releases/libsodium-$SODIUM_VERSION.tar.gz" | tar -xz --strip-components 1 && ./configure --prefix="$DEPENDENCY_DIR" && make install @@ -25,7 +27,7 @@ install: # install libtoxcore - mkdir c-toxcore && pushd c-toxcore - && curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v0.2.1.tar.gz" + && curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v$TOXCORE_VERSION.tar.gz" | tar -xz --strip-components 1 && cmake -DCMAKE_INSTALL_PREFIX="$DEPENDENCY_DIR" -DBUILD_AV_TEST=off && make install