mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 23:05:43 +00:00
59 lines
2.0 KiB
YAML
59 lines
2.0 KiB
YAML
language: rust
|
|
rust:
|
|
- nightly
|
|
- stable
|
|
|
|
install:
|
|
- export CXX="g++-4.8"
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- george-edison55-precise-backports # recent version of cmake
|
|
packages:
|
|
- gcc-4.8
|
|
- g++-4.8 # required to compile glslang
|
|
- clang
|
|
- cmake
|
|
- cmake-data
|
|
|
|
script:
|
|
- cargo test -v --manifest-path glsl-to-spirv/Cargo.toml
|
|
- cargo test -v --manifest-path vulkano-shaders/Cargo.toml
|
|
# We run the projects that depend on vulkano with `-j 1` or we have a
|
|
# chance to reach travis' memory limit
|
|
- cargo test -j 1 --manifest-path vulkano-win/Cargo.toml
|
|
- cargo test --no-run -j 1 -v --manifest-path vulkano/Cargo.toml
|
|
- cargo build -j 1 --manifest-path examples/Cargo.toml
|
|
|
|
after_success:
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo install ghp &&
|
|
export PATH=/home/travis/.cargo/bin:$PATH &&
|
|
cargo doc --manifest-path vulkano/Cargo.toml &&
|
|
ghp vulkano/target/doc &&
|
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --no-verify --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --no-verify --token ${CRATESIO_TOKEN} --manifest-path vulkano/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --no-verify --token ${CRATESIO_TOKEN} --manifest-path vulkano-win/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --no-verify --token ${CRATESIO_TOKEN} --manifest-path glsl-to-spirv/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --no-verify --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml
|