mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-10-30 14:02:30 +00:00
74 lines
2.7 KiB
YAML
74 lines
2.7 KiB
YAML
language: rust
|
|
rust:
|
|
- nightly
|
|
- stable
|
|
|
|
cache:
|
|
cargo
|
|
|
|
before_install:
|
|
- openssl aes-256-cbc -K $encrypted_68b8d7c1b5be_key -iv $encrypted_68b8d7c1b5be_iv
|
|
-in ./www/deploy.enc -out www-deploy-key -d
|
|
|
|
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
|
|
- cargo test -v --manifest-path vulkano-shader-derive/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 test --doc -j 1 -v --manifest-path vulkano/Cargo.toml
|
|
- cargo build -j 1 --manifest-path examples/Cargo.toml
|
|
- cargo test --manifest-path www/Cargo.toml
|
|
|
|
after_success:
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-win/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path glsl-to-spirv/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shader-derive/Cargo.toml
|
|
#- |
|
|
#[ $TRAVIS_BRANCH = master ] &&
|
|
#[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
#[ $TRAVIS_RUST_VERSION = stable ] &&
|
|
#chmod 600 www-deploy-key &&
|
|
#mv www-deploy-key ~/.ssh/id_rsa &&
|
|
#ssh -o "StrictHostKeyChecking no" git@push-par-clevercloud-customers.services.clever-cloud.com &&
|
|
#git remote add deploy git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/app_1817cab1-3b09-4501-9c04-85ee2f6b3d76.git &&
|
|
#git push -f deploy `git subtree split --prefix www`:master
|