2016-04-11 06:27:44 +00:00
|
|
|
image: ubuntu:xenial
|
|
|
|
|
|
|
|
before_script:
|
2016-04-11 06:38:34 +00:00
|
|
|
- apt-get -y install sudo curl git
|
2016-04-11 06:27:44 +00:00
|
|
|
- curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh
|
|
|
|
- multirust default stable
|
2016-02-13 18:38:55 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
2016-04-11 06:27:44 +00:00
|
|
|
- deploy
|
2016-02-13 18:38:55 +00:00
|
|
|
|
|
|
|
job1:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cargo test -v --manifest-path glsl-to-spirv/Cargo.toml
|
|
|
|
- cargo test -v --manifest-path vulkano-shaders/Cargo.toml
|
2016-04-11 06:27:44 +00:00
|
|
|
- cargo build -v --manifest-path vulkano/Cargo.toml
|
|
|
|
|
2016-04-11 06:34:59 +00:00
|
|
|
pages:
|
2016-04-11 06:27:44 +00:00
|
|
|
stage: deploy
|
2016-04-11 06:32:22 +00:00
|
|
|
only:
|
|
|
|
- master
|
2016-04-11 06:27:44 +00:00
|
|
|
script:
|
|
|
|
- cargo doc --manifest-path vulkano/Cargo.toml
|
2016-04-11 06:34:59 +00:00
|
|
|
- rm -rf public
|
|
|
|
- mkdir public
|
2016-04-11 06:32:22 +00:00
|
|
|
- cp target/doc/* public
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|