language: rust
os:
- linux
env:
global:
- LD_LIBRARY_PATH: /usr/local/lib
install:
- cd ..
- time wget -q http://www.libsdl.org/release/SDL2-2.0.3.tar.gz
- time wget -q http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz
- time tar xf SDL2-*.tar.gz
- time tar xf SDL2_image-*.tar.gz
- cd SDL2-*
- ./configure && make && sudo make install
- cd -
- cd SDL2_image-*
- ./configure && make && sudo make install
- cd -
script:
- cd rust-sdl2_image
- cargo build -v
- cargo test -v
- cargo doc -v
after_script:
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh