add .travis.yml for travis ci

This commit is contained in:
Andelf
2014-04-09 12:33:19 +08:00
parent 521b2c9b72
commit 31df40c848
+20
View File
@@ -0,0 +1,20 @@
before_install:
- yes | sudo add-apt-repository ppa:hansjorg/rust
- sudo apt-get update
install:
- sudo apt-get install rust-nightly
- cd ..
- time wget -q http://www.libsdl.org/release/SDL2-2.0.3.tar.gz
- time wget -q http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.gz
- time tar xf SDL2-*.tar.gz
- time tar xf SDL2_mixer-*.tar.gz
- cd SDL2-*
- ./configure && make && sudo make install
- cd -
- cd SDL2_mixer-*
- ./configure && make && sudo make install
- cd -
- git clone https://github.com/andelf/rust-sdl2.git
- rustc rust-sdl2/src/sdl2/lib.rs
script:
- rustc -L. rust-sdl2_mixer/src/sdl2_mixer/lib.rs