Add OpenSSL dependency to Travis, cache Cargo artifacts

This commit is contained in:
James 2018-01-31 18:47:44 +11:00
parent 14590b2df6
commit bff20f30a5
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,5 @@
os: linux os: linux
cache: cargo
dist: trusty dist: trusty
sudo: required sudo: required
services: services:
@ -9,3 +10,4 @@ install:
script: script:
- docker run -v $(pwd):/liftinstall ubuntu:18.04 /bin/bash -ex /liftinstall/.travis/build.sh - docker run -v $(pwd):/liftinstall ubuntu:18.04 /bin/bash -ex /liftinstall/.travis/build.sh
- cp -r .cargo/ ~/.cargo/

View file

@ -2,9 +2,11 @@
cd /liftinstall cd /liftinstall
apt update 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 curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH=~/.cargo/bin:$PATH export PATH=~/.cargo/bin:$PATH
cargo build cargo build
cp -r ~/.cargo/ ./.cargo/