Skip to content

Commit 65f09e0

Browse files
committed
travis: add darwin build environment
This adds a build environment based on osx, so we can ensure it builds on this platform as well. Signed-off-by: Sean Cross <[email protected]>
1 parent 8511ae1 commit 65f09e0

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.travis.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
language: rust
2-
rust:
3-
- stable
4-
- beta
5-
- nightly
6-
matrix:
2+
jobs:
73
allow_failures:
84
- 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
5+
include:
6+
- env: TEST_CMD=xvfb-run
7+
rust: nightly
8+
- env: TEST_CMD=xvfb-run
9+
rust: beta
10+
- env: TEST_CMD=xvfb-run
11+
rust: stable
12+
- env: MACOSX_DEPLOYMENT_TARGET=10.7 SKIP_INSTALL=1
13+
rust: stable
14+
os: osx
15+
before_install: |
16+
[ "x$SKIP_INSTALL" != "x" ] || sudo apt-get -qq update
17+
[ "x$SKIP_INSTALL" != "x" ] || sudo apt-get install -y libgtk-3-dev
18+
1319
script:
1420
- cd ui-sys
1521
- cargo build --verbose --tests --examples
16-
- xvfb-run cargo test
22+
- $TEST_CMD cargo test
1723
- cd ../iui
1824
- cargo build --verbose --tests --examples
19-
- xvfb-run cargo test
25+
- $TEST_CMD cargo test
2026
after_success: |
2127
[ $TRAVIS_BRANCH = master ] &&
2228
[ $TRAVIS_PULL_REQUEST = false ] &&

0 commit comments

Comments
 (0)