travis: add macos and windows CI

This commit is contained in:
liushuyu 2019-04-01 16:03:52 -06:00
parent 137d2ec539
commit ae63bc7dab
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
3 changed files with 23 additions and 13 deletions

View file

@ -1,11 +1,18 @@
os: linux matrix:
dist: trusty include:
sudo: required - os: linux
services: language: cpp
- docker sudo: required
dist: trusty
services: docker
install: docker pull ubuntu:18.04
script: docker run -v $(pwd):/liftinstall ubuntu:18.04 /bin/bash -ex /liftinstall/.travis/build.sh
install: - os: osx
- docker pull ubuntu:18.04 language: rust
osx_image: xcode10
script: cargo build
script: - os: windows
- docker run -v $(pwd):/liftinstall ubuntu:18.04 /bin/bash -ex /liftinstall/.travis/build.sh language: rust
script: cargo build

View file

@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd /liftinstall cd /liftinstall || exit 1
apt update apt-get update
apt install -y libwebkit2gtk-4.0-dev libssl-dev apt-get install -y libwebkit2gtk-4.0-dev libssl-dev
curl https://sh.rustup.rs -sSf | sh -s -- -y curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y
export PATH=~/.cargo/bin:$PATH export PATH=~/.cargo/bin:$PATH
cargo build cargo build

3
bootstrap.macos.toml Normal file
View file

@ -0,0 +1,3 @@
# fake configuration for CI purpose only
name = "yuzu"
target_url = "https://raw.githubusercontent.com/j-selby/test-installer/master/config.linux.v2.toml"