This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvagga.yaml
166 lines (156 loc) · 6.1 KB
/
vagga.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
minimum-vagga: v0.5.0
_cmds:
build: &build-cmd |
rustup update
if [ -z "$@" ]; then
cargo build
else
cargo build --features "$@"
fi
build-example: &build-example-cmd |
rustup update
if [ -z "$@" ]; then
cargo build --example example
else
cargo build --example example --features "$@"
fi
test: &test-cmd |
rustup update
if [ -z "$@" ]; then
cargo test
else
cargo test --features "$@"
fi
containers:
base:
auto-clean: true
setup:
- !Ubuntu xenial
- !UbuntuUniverse
- !Install [build-essential, wget, curl, pkg-config, file, openssl, sudo, ca-certificates, gcc-multilib, clang, libclang-dev, cmake, git, libpixman-1-dev, libwayland-dev, libxkbcommon-dev, udev, libinput-dev, libx11-dev, libxfixes-dev, libx11-xcb-dev, libxcb-ewmh-dev, libxcb-composite0-dev, libxcb-xkb-dev, libxcb-xfixes0-dev, libxcb-image0-dev, libgbm-dev, libdrm-dev, libgl1-mesa-dev, libegl1-mesa-dev, libgles2-mesa-dev, libdbus-1-dev, libsystemd-dev, wayland-protocols, linux-libc-dev]
- !Sh |
cd /tmp/
git clone git://github.com/Cloudef/wlc
cd wlc;
git submodule update --init --recursive
mkdir target && cd target
cmake -DCMAKE_BUILD_TYPE=Release -DSOURCE_WLPROTO=ON -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install
cd ..
rm -rf wlc
stable:
auto-clean: true
environ:
HOME: /work/.vagga/stable-home
PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/work/.vagga/stable-home/.cargo/bin:/work/.vagga/stable-home/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/
setup:
- !Container base
- !Env HOME: /work/.vagga/stable-home
- !Sh curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host x86_64-unknown-linux-gnu --default-toolchain stable --no-modify-path
- !Env PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/work/.vagga/stable-home/.cargo/bin
- !Sh cargo install -f cargo-update
- !Sh cargo install rustfmt || cargo install-update rustfmt
beta:
auto-clean: true
environ:
HOME: /work/.vagga/beta-home
PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/work/.vagga/beta-home/.cargo/bin:/work/.vagga/beta-home/.rustup/toolchains/beta-x86_64-unknown-linux-gnu/bin/
RUST_MIN_STACK: 32000000
setup:
- !Container base
- !Env HOME: /work/.vagga/beta-home
- !Sh curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host x86_64-unknown-linux-gnu --default-toolchain beta --no-modify-path
nightly:
auto-clean: true
environ:
HOME: /work/.vagga/nightly-home
PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/work/.vagga/nightly-home/.cargo/bin:/work/.vagga/nightly-home/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/
RUST_MIN_STACK: 32000000
setup:
- !Container base
- !Env HOME: /work/.vagga/nightly-home
- !Sh curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host x86_64-unknown-linux-gnu --default-toolchain nightly --no-modify-path
- !Env PATH: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/work/.vagga/nightly-home/.cargo/bin
- !Sh cargo install -f clippy
commands:
check-fmt: !Command
description: Check for wrong formatting
container: stable
run: |
rustup update
cargo install-update rustfmt
cargo fmt -- --write-mode=diff
build-stable: !Command
description: Build on rust stable
accepts-arguments: true
container: stable
run: *build-cmd
build-beta: !Command
description: Build on rust beta
accepts-arguments: true
container: beta
run: *build-cmd
build-nightly: !Command
description: Build on rust beta
accepts-arguments: true
container: nightly
run: *build-cmd
test-stable: !Command
description: Test on rust stable
accepts-arguments: true
container: stable
run: *test-cmd
test-beta: !Command
description: Test on rust beta
accepts-arguments: true
container: beta
run: *test-cmd
test-nightly: !Command
description: Test on rust beta
accepts-arguments: true
container: nightly
run: *test-cmd
build-example-stable: !Command
description: Build the example on rust stable
accepts-arguments: true
container: stable
run: *build-example-cmd
build-example-beta: !Command
description: Build the example on rust beta
accepts-arguments: true
container: beta
run: *build-example-cmd
build-example-nightly: !Command
description: Build the example on rust beta
accepts-arguments: true
container: nightly
run: *build-example-cmd
clippy: !Command
description: Run clippy over codebase
accepts-arguments: true
container: nightly
run: |
rustup update
cargo install -f clippy
if [ -z "$@" ]; then
cargo clippy
else
cargo clippy --features "$@"
fi
doc: !Command
description: Generate documentation
accepts-arguments: true
container: nightly
run: |
rustup update
if [ -z "$@" ]; then
cargo doc
else
cargo doc --features "$@"
fi
doc-upload: !Command
description: Upload documentation
accepts-arguments: true
container: nightly
run: travis-cargo doc-upload