Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Enable ci for minimal check #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
dist: trusty

language: c

compiler:
- gcc

before_install:
- sudo add-apt-repository --yes ppa:vala-team
- sudo apt-get update --quiet
- sudo apt-get install --yes valac

script:
- echo 'public int main (string[] args) { return 0; }' > test.vala
- valac $(ls | grep -P '(?<!cairosdl)\.vapi$' | sed 's/cairosdl.vapi//' | sed 's/\.vapi$//' | sed 's/^/--pkg=/') --vapidir=. test.vala
- valac --pkg=cairosdl --vapidir=. test.vala
2 changes: 2 additions & 0 deletions cairosdl.deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cairo
sdl
1 change: 1 addition & 0 deletions ctpl.deps
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gio-2.0
4 changes: 2 additions & 2 deletions libmemcached.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace Memcached {
[CCode (array_length_pos = 2.5, array_length_type = "size_t")]
public uint8[]? get_by_key ([CCode (array_length_type = "size_t")] uint8[] group_key, [CCode (array_length_type = "size_t")] uint8[] key, out uint32 flags, out Memcached.ReturnCode error);
public Memcached.ReturnCode mget_by_key ([CCode (array_length_type = "size_t")] uint8[] group_key, [CCode (array_length_type = "size_t", array_length_pos = 3.5)] uint8*[] keys, [CCode (array_length = false)] size_t[] keys_length);
[Deprecated (since = "0.50", replacement = "fetch_result"), CCode (array_length_pos = 1.5, array_length_type = "size_t")]
[Version (deprecated = true, deprecated_since = "0.50", replacement = "fetch_result"), CCode (array_length_pos = 1.5, array_length_type = "size_t")]
public uint8[]? fetch ([CCode (array_length_type = "size_t")] uint8[] key, out uint32 flags, out Memcached.ReturnCode error);
public Memcached.Result? fetch_result (Memcached.Result? result, out Memcached.ReturnCode error);
[CCode (cname = "memcached_mget_execute")]
Expand Down Expand Up @@ -492,7 +492,7 @@ namespace Memcached {
}

// parse.h
[Deprecated (since = "0.39", replacement = "Context.from_configuration")]
[Version (deprecated = true, deprecated_since = "0.39", replacement = "Context.from_configuration")]
public Memcached.ServerList servers_parse (string server_strings);

// server.h
Expand Down
6 changes: 3 additions & 3 deletions libmemcachedutil.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ namespace Memcached {
public class Pool {
[CCode (cname = "memcached_pool")]
public Pool ([CCode (array_length_type = "size_t")] uint8[] option_string);
[Deprecated (since = "0.46", replacement = "Pool"), CCode (cname = "memcached_pool_create")]
[Version (deprecated = true, deprecated_since = "0.46", replacement = "Pool"), CCode (cname = "memcached_pool_create")]
public Pool.from_context (Memcached.Context mmc, uint32 initial, uint32 max);
[Deprecated (since = "0.53", replacement = "fetch")]
[Version (deprecated = true, deprecated_since = "0.53", replacement = "fetch")]
public unowned Memcached.Context pop (bool block, out Memcached.ReturnCode rc);
[Deprecated (since = "0.53", replacement = "release")]
[Version (deprecated = true, deprecated_since = "0.53", replacement = "release")]
public Memcached.ReturnCode push (Memcached.Context mmc);
public Memcached.ReturnCode release (Memcached.Context mmc);
public unowned Memcached.Context fetch (Posix.timespec relative_time, out Memcached.ReturnCode rc);
Expand Down
2 changes: 1 addition & 1 deletion sdl2-windows.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace SDL {
///
/// Windows
///
[CCode (cname="IDirect3DDevice9", cheader="d3d9.h")]
[CCode (cname="IDirect3DDevice9", cheader_filename="d3d9.h")]
[Compact]
public struct IDirect3DDevice9 {}

Expand Down
14 changes: 7 additions & 7 deletions xcb.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ namespace Xcb {
}
}
private uint8 roots_len;
[Deprecated (since = "vala-0.26", replacement = "Xcb.Setup.screens")]
[Version (deprecated = true, deprecated_since = "vala-0.26", replacement = "Xcb.Setup.screens")]
public int roots_length ();
public ScreenIterator roots_iterator ();
public Screen[] screens {
Expand Down Expand Up @@ -2054,7 +2054,7 @@ namespace Xcb {
OWNER_GRAB_BUTTON
}

[Simple]
[SimpleType]
[CCode (cname = "xcb_format_t", has_type_id = false)]
public struct Format {
public uint8 depth;
Expand Down Expand Up @@ -2129,7 +2129,7 @@ namespace Xcb {
return res;
}
}
[Deprecated (since = "vala-0.26", replacement = "Xcb.Depth.visuals")]
[Version (deprecated = true, deprecated_since = "vala-0.26", replacement = "Xcb.Depth.visuals")]
public VisualTypeIterator visuals_iterator ();
}

Expand All @@ -2142,7 +2142,7 @@ namespace Xcb {
public static void next (ref DepthIterator iter);
}

[Deprecated (since = "vala-0.26", replacement = "Xcb.Depth.visuals")]
[Version (deprecated = true, deprecated_since = "vala-0.26", replacement = "Xcb.Depth.visuals")]
[SimpleType]
[CCode (cname = "xcb_visualtype_iterator_t", has_type_id = false)]
public struct VisualTypeIterator {
Expand All @@ -2152,11 +2152,11 @@ namespace Xcb {
public static void next (ref VisualTypeIterator iter);
}

[Deprecated (since = "vala-0.14", replacement = "Xcb.Connection")]
[Version (deprecated = true, deprecated_since = "vala-0.14", replacement = "Xcb.Connection")]
public Connection connect (string? display = null, out int screen = null);
[Deprecated (since = "vala-0.14", replacement = "Xcb.Connection.create_window")]
[Version (deprecated = true, deprecated_since = "vala-0.14", replacement = "Xcb.Connection.create_window")]
public VoidCookie create_window (Connection connection, uint8 depth, Window window, Window parent, int16 x, int16 y, uint16 width, uint16 height, uint16 border_width, uint16 _class, VisualID visual, uint32 value_mask, [CCode (array_length = false)] uint32[] value_list);
[Deprecated (since = "vala-0.14", replacement = "Xcb.Connection.map_window")]
[Version (deprecated = true, deprecated_since = "vala-0.14", replacement = "Xcb.Connection.map_window")]
public VoidCookie map_window (Connection connection, Window window);

[CCode (cname = "xcb_point_t", has_type_id = false)]
Expand Down