travis: Build using the linux-liftinstall Docker container

travis: Build in release mode

travis: Use yuzu user for building

travis: Fix permissions resetting
This commit is contained in:
lat9nq 2021-07-17 01:43:33 -04:00
parent e54199ad6f
commit 061944079b
2 changed files with 7 additions and 10 deletions

View file

@ -1,15 +1,6 @@
#!/usr/bin/env bash
cd /liftinstall || exit 1
# setup NodeJS
curl -sL https://deb.nodesource.com/setup_12.x | bash -
# setup Yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y libwebkit2gtk-4.0-dev libssl-dev nodejs yarn
yarn --cwd ui
cargo build
cargo build --release

6
.travis/exec.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash -ex
# the UID for the container yuzu user is 1027
sudo chown -R 1027 ./
docker run -v $(pwd):/liftinstall -t yuzuemu/build-environments:linux-liftinstall /bin/bash /liftinstall/.travis/build.sh
sudo chown -R $(id -u):$(id -g) ./