-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.build.yml
44 lines (36 loc) · 1.05 KB
/
.build.yml
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
image: archlinux
secrets:
- b1dac407-e582-40e8-82e9-b9fda2b105e9
packages:
- rsync
- curl
- clang
- rust
- python-setuptools
- python-ghp-import
sources:
- https://github.com/bradfier/tibrv-rs
environment:
TIBRV: /home/build/tibco
LD_LIBRARY_PATH: /home/build/tibco/lib
GIT_SSH_COMMAND: "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
tasks:
- setup: |
curl -O https://radio.bradfirj.co.uk/files/tibco.tar.gz
tar -xf tibco.tar.gz
- build: |
cd tibrv-rs
cargo build --all-features
- test: |
cd tibrv-rs
cargo test --all-features
- doc: |
cd tibrv-rs
if [ "$(git rev-parse master)" = "$(git rev-parse HEAD)" ]; then
cargo doc --all-features
echo '<meta http-equiv=refresh content=0;url=tibrv/index.html>' > target/doc/index.html
ghp-import -n target/doc
git push --force ssh://[email protected]/bradfier/tibrv-rs.git gh-pages
else
echo "Not on master, skipping..."
fi