Skip to content

Instantly share code, notes, and snippets.

@phsym
Created January 13, 2016 14:57
Show Gist options
  • Save phsym/2eb7217a629d35a580cc to your computer and use it in GitHub Desktop.
Save phsym/2eb7217a629d35a580cc to your computer and use it in GitHub Desktop.
Travis file for running rustc & cargo for windows in a wine container
before_script:
- sudo add-apt-repository ppa:ubuntu-wine/ppa -y
- sudo apt-get update -qq
- sudo apt-get install wine1.6 xvfb
- sudo Xvfb :1 &
- export DISPLAY=":1.0"
- export WINEDEBUG="fixme-all"
- wine --version
script:
- wget http://static.rust-lang.org/dist/rust-1.0.0-x86_64-pc-windows-gnu.exe
- wine rust-1.0.0-x86_64-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:/Rust"
- wine C:/Rust/bin/rustc -V
- wine C:/Rust/bin/cargo -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment