Skip to content

Commit 05f2127

Browse files
committed
Add initial travis config
1 parent 27889cb commit 05f2127

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: rust
2+
rust:
3+
- stable
4+
- beta
5+
- nightly
6+
matrix:
7+
allow_failures:
8+
- rust: nightly
9+
before_install:
10+
- sudo apt-get -qq update
11+
- sudo apt-get install -y cmake
12+
- sudo apt-get install -y libgtk-3-dev
13+
script:
14+
- cd ui-sys
15+
- cargo build --verbose --tests --examples
16+
- cd ../ui
17+
- cargo build --verbose --tests --examples
18+
after_success: |
19+
[ $TRAVIS_BRANCH = travis ] &&
20+
[ $TRAVIS_PULL_REQUEST = false ] &&
21+
cd $TRAVIS_BUILD_DIR/ui/ &&
22+
cargo doc &&
23+
echo "<meta http-equiv=refresh content=0;url=ui/index.html>" > target/doc/index.html &&
24+
sudo pip install ghp-import &&
25+
ghp-import -n target/doc &&
26+
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
27+
28+
env:
29+
global:
30+
secure: dfPG6E3lrxnbah17u8S4xJmqFMhrAKoXNxQKGSnEoP3HjZL1NrFFsGCtGbIGPGyz02sCQ3U35nmuGHjUP9SOn+oRV6oQlBx41PPHULoDfsMKojEG80Uphjhd6rCXhdTG10EeIjqK+thNvbhnKXJoSPxe7rIk+r+z4HWHjQhxQuT6i4A6AsjvLGV1UI/WxCzrRFJohnaSyd/jx4/BgBd6XXsHzBvrjYSKSDrrBfJJwqrVchLozD6wSKTaTYdK9CSVGYx8S58Kx2m1j1Hk7FuuC6tqPtOARpwlNOX83p4PUMgZln74QzPN65Y2oYx5dszjflyAf5p264ltDwMLlygDTs92kilRCrznnP1iHgtrO3+aV2jwtRtqXB16JpeYKGFMkRtd3afWZ1SaMjU7s+6tVbSvlXg88GstZPqYYw7B4qYP1BGPX6UGiYMtpqH3Tm1Ne3lX3sPQYDFaV7vkd4JoS05vuHuGU+FERJRmaMAHjz2PCEhcgwnQTzL5LFKTcfNHEFv7NkQ8zPiJ7GELg9n2KnWiRhdB4JGUu8WB1LyYP6j3CQ9NwfBj0VGiH8Urgl9fC3IJnXQW3f284vk0VxBQnSdKILHsvdo8pe6INbDu97XOhzZNIc4jLZRT08aQe5Lk+3e7nGf0CCxFNQSlP6FFN7UP9c/Qvd4M3Ys5atBAryQ=

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# libUI
2+
[![libui-rs build status](https://api.travis-ci.org/LeoTindall/libui-rs.svg?branch=master)](https://travis-ci.org/LeoTindall/libui-rs/)
3+
24
A Rusty user interface library that binds to platform native APIs.
35
These are work-in-progress Rust bindings to the minimalistic native UI library [libui][libui].
46

@@ -10,3 +12,6 @@ Based on work by @pcwalton
1012

1113
[libui]: https://github.com/andlabs/libui
1214

15+
# Testing Note
16+
17+
Travis does not connect video devices to their testing environments, so the tests cannot be run. Therefore, the "tests" only check compilation.

0 commit comments

Comments
 (0)