machine: environment: PATH: "$HOME/.cargo/bin:$HOME/.local/bin:$PATH" LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$HOME/.local/lib" LD_RUN_PATH: "$LD_RUN_PATH:$HOME/.local/lib" DYLD_LIBRARY_PATH: "$DYLD_LIBRARY_PATH:$HOME/.local/lib" LDFLAGS: "-L$HOME/.local/lib" CPPFLAGS: "-I$HOME/.local/include" PKG_CONFIG_PATH: "$PKG_CONFIG_PATH:$HOME/.local/lib/pkgconfig" RUSTC_DATE: "2016-10-06" # used by cargo LIBRARY_PATH: "$LIBRARY_PATH:$HOME/.local/lib" post: - sed -i 's/github/git-non-exist-hub/g' ~/.gitconfig dependencies: cache_directories: # NOTE: it's bad idea to cache .multirust # since it'll increase cache restore time # - ~/.multirust - ~/.cargo - ~/.local pre: # install rust/cargo # install SDL2/SDL2_mixer - | if [[ ! -e $HOME/.cargo ]]; then curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --default-toolchain "nightly-${RUSTC_DATE}" -y; rustup default "nightly-${RUSTC_DATE}"; else rustup default "nightly-${RUSTC_DATE}"; fi; if [[ ! -e $HOME/.local/lib/libSDL2.a ]]; then wget -q https://www.libsdl.org/release/SDL2-2.0.5.tar.gz; tar xf SDL2-*.tar.gz; cd SDL2-* && ./configure --prefix=$HOME/.local && make -j install; fi; if [[ ! -e $HOME/.local/lib/libSDL2_mixer.a ]]; then wget -q https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz; tar xf SDL2_mixer-*.tar.gz; cd SDL2_mixer-* && ./configure --prefix=$HOME/.local && make -j install; fi test: override: - cargo build -v - cargo test -v