forked from lf-lang/lingua-franca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (48 loc) · 1016 Bytes
/
.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
48
49
# Build lingua-franca on the Travis Continuous Integration system
#
# Based on http://muelder.blogspot.com/2015/08/building-eclipse-plugins-with-maven.html
#
os:
- linux
- osx
dist: bionic
sudo: false
language: java
jdk:
- oraclejdk12
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
# The node_js property doesn't work if the language is java
before_install:
- nvm install 10.4.0
addons:
apt:
packages:
- python3-pip
- python3-setuptools
- python3-googleapi
- libprotobuf-dev
- libprotobuf-c-dev
- protobuf-compiler
- protobuf-c-compiler
env:
- TEST=Unit
- TEST=C
- TEST=Cpp
- TEST=Python
- TEST=TS
# global:
# - DISPLAY=:99.0
#before_install:
# - sh -e /etc/init.d/xvfb start - sleep 10
script:
- 'if [ ${TEST} = "Unit" ]; then
pushd xtext;
./gradlew test || travis_terminate 1;
popd;
else
bin/build-lfc --clean || travis_terminate 1;
bin/run-lf-tests $TEST || travis_terminate 1;
fi'