-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 1.06 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
language: rust
dist: xenial
addons:
apt:
packages:
- mosquitto
- openjdk-8-jdk
- python3
before_install:
- sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
- sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
before_script:
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
rustup component add rustfmt;
rustup component add clippy;
fi
rust:
- stable
- beta
- nightly
script:
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo fmt --all -- --check;
fi
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo clippy --all-targets --all-features -- -D warnings;
fi
- cargo build --all
- cargo test --all
- pwd
- (cd platforms/hermes-kotlin && ./gradlew --console plain jar -Pdebug)
- (cd platforms/hermes-kotlin && ./gradlew --console plain test -Pdebug)
- (cd platforms/hermes-python && ./run-tests-travis.sh)
- (cd platforms/hermes-javascript && npm install && npm start)
matrix:
allow_failures:
- rust: nightly