Skip to content

Commit

Permalink
Add Vulkan SDK to travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
realitix committed Apr 10, 2017
1 parent 533d386 commit 6a40d1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ git:

before_install:
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%f --no-merges -n 1)\""
- bash ./travis_deploy.sh

install:
- pip install -r requirements.txt
Expand Down
1 change: 0 additions & 1 deletion travis_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# This script allows TravisCI to generate the API documentation for each
# commit on master branch and to deploy it to the vulk-api repository.
# API_USER and API_PASS are travis secure variable

git clone https://$API_USER:$API_PASS@github.com/realitix/vulk-api.git vulk-api > /dev/null 2>&1
rm -rf vulk-api/docs
sphinx-apidoc -f -o vulk-api vulk
Expand Down
9 changes: 9 additions & 0 deletions travis_prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

# Download Vulkan SDK
wget https://vulkan.lunarg.com/sdk/download/1.0.46.0/linux/vulkansdk-linux-x86_64-1.0.46.0.run
chmod u+x vulkansdk-linux-x86_64-1.0.46.0.run
./vulkansdk-linux-x86_64-1.0.46.0.run
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/VulkanSDK/1.0.46.0/x86_64/lib/
export VK_LAYER_PATH=$DIR/VulkanSDK/1.0.46.0/x86_64/etc/explicit_layer.d

0 comments on commit 6a40d1a

Please sign in to comment.