From bff20f30a575d211c1494fc1474f3c0edc2a2bb2 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 31 Jan 2018 18:47:44 +1100 Subject: [PATCH] Add OpenSSL dependency to Travis, cache Cargo artifacts --- .travis.yml | 2 ++ .travis/build.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 600d3a2..2447de8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ os: linux +cache: cargo dist: trusty sudo: required services: @@ -9,3 +10,4 @@ install: script: - docker run -v $(pwd):/liftinstall ubuntu:18.04 /bin/bash -ex /liftinstall/.travis/build.sh + - cp -r .cargo/ ~/.cargo/ diff --git a/.travis/build.sh b/.travis/build.sh index 3c27d66..d47e862 100644 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -2,9 +2,11 @@ cd /liftinstall apt update -apt install -y libwebkit2gtk-4.0-dev +apt install -y libwebkit2gtk-4.0-dev libssl-dev curl https://sh.rustup.rs -sSf | sh -s -- -y export PATH=~/.cargo/bin:$PATH cargo build + +cp -r ~/.cargo/ ./.cargo/ \ No newline at end of file