2016-02-05 13:33:36 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
- stable
|
|
|
|
|
2017-06-21 11:10:16 +00:00
|
|
|
cache:
|
|
|
|
cargo
|
2017-06-21 10:43:39 +00:00
|
|
|
|
2017-06-25 12:19:22 +00:00
|
|
|
before_install:
|
|
|
|
- openssl aes-256-cbc -K $encrypted_68b8d7c1b5be_key -iv $encrypted_68b8d7c1b5be_iv
|
|
|
|
-in ./www/deploy.enc -out www-deploy-key -d
|
|
|
|
|
2016-02-19 15:56:40 +00:00
|
|
|
install:
|
|
|
|
- export CXX="g++-4.8"
|
|
|
|
|
2016-02-18 10:30:11 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-02-19 15:53:57 +00:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2016-04-12 11:46:09 +00:00
|
|
|
- george-edison55-precise-backports # recent version of cmake
|
2016-02-18 10:30:11 +00:00
|
|
|
packages:
|
2016-02-19 15:53:57 +00:00
|
|
|
- gcc-4.8
|
2016-02-19 15:50:36 +00:00
|
|
|
- g++-4.8 # required to compile glslang
|
2016-02-19 15:53:57 +00:00
|
|
|
- clang
|
2016-04-12 11:46:09 +00:00
|
|
|
- cmake
|
2016-04-12 11:49:22 +00:00
|
|
|
- cmake-data
|
2016-02-18 10:30:11 +00:00
|
|
|
|
2016-02-05 13:33:36 +00:00
|
|
|
script:
|
|
|
|
- cargo test -v --manifest-path glsl-to-spirv/Cargo.toml
|
2016-02-06 10:45:09 +00:00
|
|
|
- cargo test -v --manifest-path vulkano-shaders/Cargo.toml
|
2017-02-02 19:50:38 +00:00
|
|
|
- cargo test -v --manifest-path vulkano-shader-derive/Cargo.toml
|
2016-04-23 11:24:56 +00:00
|
|
|
# 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
|
2016-09-20 09:46:00 +00:00
|
|
|
- cargo test --doc -j 1 -v --manifest-path vulkano/Cargo.toml
|
2016-04-30 10:52:47 +00:00
|
|
|
- cargo build -j 1 --manifest-path examples/Cargo.toml
|
2017-06-24 17:47:32 +00:00
|
|
|
- cargo test --manifest-path www/Cargo.toml
|
2016-02-18 09:57:24 +00:00
|
|
|
|
2016-09-01 12:41:29 +00:00
|
|
|
after_success:
|
2016-04-30 10:08:48 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2016-09-18 13:21:48 +00:00
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
|
2016-04-30 10:55:26 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2016-09-18 13:21:48 +00:00
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano/Cargo.toml
|
2016-04-30 10:55:26 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2016-09-18 13:21:48 +00:00
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-win/Cargo.toml
|
2016-04-30 10:55:26 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2016-09-18 13:21:48 +00:00
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path glsl-to-spirv/Cargo.toml
|
2016-04-30 10:55:26 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2016-09-18 13:21:48 +00:00
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml
|
2017-02-02 19:50:38 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shader-derive/Cargo.toml
|
2017-06-27 18:28:39 +00:00
|
|
|
- |
|
|
|
|
[ $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 subtree push -q --prefix www deploy master
|