Skip to content

Commit dcc8782

Browse files
committed
[VK] Enabled the feature for Travis CI
1 parent e58f21e commit dcc8782

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ addons:
3232
- libxcursor1
3333
- libsdl2-dev
3434
script:
35-
- travis-cargo build
35+
- travis-cargo build -- --features vulkan
3636
- travis-cargo test -- -p gfx_core
3737
- travis-cargo test -- -p gfx
3838
- travis-cargo test -- -p gfx_device_gl
3939
- travis-cargo test -- -p gfx_window_glutin
4040
- travis-cargo test -- -p gfx_window_glfw
4141
- travis-cargo test -- -p gfx_window_sdl
42+
- travis-cargo test -- -p gfx_device_vulkan
43+
- travis-cargo test -- -p gfx_window_vulkan
4244
- travis-cargo test
4345
after_success:
4446
- travis-cargo doc -- -j 1

Cargo.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ license = "Apache-2.0"
88
authors = ["The Gfx-rs Developers"]
99

1010
[features]
11-
default = ["vulkan"]
12-
vulkan = []
11+
default = []
12+
vulkan = ["gfx_device_vulkan", "gfx_window_vulkan"]
1313
unstable = []
1414

1515

@@ -24,8 +24,16 @@ gfx_core = { path = "src/core", version = "0.5" }
2424
gfx = { path = "src/render", version = "0.13" }
2525
gfx_device_gl = { path = "src/backend/gl", version = "0.12" }
2626
gfx_window_glutin = { path = "src/window/glutin", version = "0.13" }
27-
gfx_device_vulkan = { path = "src/backend/vulkan", version = "0.1" }
28-
gfx_window_vulkan = { path = "src/window/vulkan", version = "0.1" }
27+
28+
[dependencies.gfx_device_vulkan]
29+
path = "src/backend/vulkan"
30+
version = "0.1"
31+
optional = true
32+
33+
[dependencies.gfx_window_vulkan]
34+
path = "src/window/vulkan"
35+
version = "0.1"
36+
optional = true
2937

3038
[target.'cfg(unix)'.dependencies]
3139
gfx_window_glfw = { path = "src/window/glfw", version = "0.12" }

0 commit comments

Comments
 (0)