Skip to content

Commit

Permalink
Bundle proper cURL
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Nov 17, 2017
1 parent 102a5f7 commit aeaf936
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ compiler: gcc
sudo: require
dist: trusty

install:
# replace existing curl with the PPA one
- sudo apt-get -y install git cmake g++ libcurl3-gnutls-dev
before_script:
- sudo bash resources/bootstrap-container.sh

script:
- git submodule update --init
Expand Down
16 changes: 16 additions & 0 deletions resources/bootstrap-container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /bin/bash

if ! which wget 2>&1 1>/dev/null; then
apt-get update
apt-get install -y wget
fi

echo 'deb http://download.opensuse.org/repositories/home:/TheAssassin:/AppImageLibraries/xUbuntu_14.04/ /' > /etc/apt/sources.list.d/curl-httponly.list
wget -nv https://download.opensuse.org/repositories/home:TheAssassin:AppImageLibraries/xUbuntu_14.04/Release.key -O- | sudo apt-key add -
apt-get update
apt-get install -y git g++ libxpm-dev libcurl3 libcurl3-gnutls build-essential clang g++ libssl-dev

if ! which cmake 2>&1 1>/dev/null; then
wget https://cmake.org/files/v3.10/cmake-3.10.0-rc5-Linux-x86_64.tar.gz -O- | tar -xz --strip-components=1 -C /
fi

0 comments on commit aeaf936

Please sign in to comment.