Skip to content

Commit

Permalink
Run initialization on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakarum committed Nov 27, 2019
1 parent 20c6056 commit 29d9fd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pipeline {
echo 'Building to calculate coverage'
sh 'cd tests && cargo build --bin gl --bin vulkan'
sh 'cd rendy && cargo test --all-targets --all-features'
sh 'cd rendy && cargo run --example init --all-features'
echo 'Calculating code coverage...'
sh 'for file in target/debug/rendy*[^\\.d]; do mkdir -p \"target/cov/$(basename $file)\"; kcov --exclude-pattern=/.cargo,/usr/lib --verify \"target/cov/$(basename $file)\" \"$file\" || true; done'
echo "Uploading coverage..."
Expand All @@ -58,10 +59,11 @@ pipeline {
steps {
bat 'C:\\Users\\root\\.cargo\\bin\\cargo update'
echo 'Beginning tests...'
bat 'cd tests && cargo build --bin dx12 --bin gl --bin vulkan'
bat 'cd tests && C:\\Users\\root\\.cargo\\bin\\cargo build --bin dx12 --bin gl --bin vulkan'
// TODO: Once we support DX12, we should switch to it from vulkan for windows
// FIXME: Can't test "full" because of problems with shaderc compilation on windows box
bat 'cd rendy && C:\\Users\\root\\.cargo\\bin\\cargo test --all-targets --no-default-features --features "base mesh-obj texture-image texture-palette spirv-reflection serde-1 dx12 gl vulkan"'
bat 'cd rendy && C:\\Users\\root\\.cargo\\bin\\cargo run --example init --no-default-features --features "base mesh-obj texture-image texture-palette spirv-reflection serde-1 dx12 gl vulkan"'
echo 'Tests done!'
}
}
Expand All @@ -77,6 +79,7 @@ pipeline {
echo 'Beginning tests...'
sh 'cd tests && /Users/jenkins/.cargo/bin/cargo build --bin gl --bin metal'
sh 'cd rendy && /Users/jenkins/.cargo/bin/cargo test --all-targets --all-features'
sh 'cd rendy && /Users/jenkins/.cargo/bin/cargo run --example init --all-features'
echo 'Tests done!'
}
}
Expand Down

0 comments on commit 29d9fd6

Please sign in to comment.