forked from jeremyletang/rust-sfml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.41 KB
/
.travis.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
45
46
47
sudo: false
env:
global:
- LD_LIBRARY_PATH=/home/travis/build/jeremyletang/rust-sfml/sfml_install/usr/local/lib
language: rust
rust:
- nightly
- 1.42.0
script:
- set -e
- mkdir sfml_install
# TODO: Maybe investigate why the certificate checks for the SFML sources fail
- wget http://www.sfml-dev.org/files/SFML-2.5.1-sources.zip --no-check-certificate
- unzip -q SFML-2.5.1-sources.zip
- pushd SFML-2.5.1 && mkdir build && cd build && cmake .. && make
- make DESTDIR=/home/travis/build/jeremyletang/rust-sfml/sfml_install install
- popd
- wget http://www.sfml-dev.org/files/CSFML-2.5-sources.zip --no-check-certificate
- unzip -q CSFML-2.5-sources.zip
- pushd CSFML-2.5
- mkdir build && cd build && cmake -DSFML_DIR='/home/travis/build/jeremyletang/rust-sfml/sfml_install/usr/local/lib/cmake/SFML/' .. && make
- make DESTDIR=/home/travis/build/jeremyletang/rust-sfml/sfml_install install
- popd
- mkdir .cargo
- mv .travis.cargo.config .cargo/config
- cargo build --verbose
- cargo test --features ci-headless --verbose
- cargo doc --verbose
addons:
apt:
packages:
- libpthread-stubs0-dev
- libgl1-mesa-dev
- libx11-dev
- libx11-xcb-dev
- libxcb-image0-dev
- libxrandr-dev
- libxcb-randr0-dev
- libudev-dev
- libfreetype6-dev
- libglew-dev
- libjpeg8-dev
- libgpgme11-dev
- libsndfile1-dev
- libopenal-dev
- libjpeg62
- cmake