Skip to content

Commit 3752c77

Browse files
committed
new:dev: added travis file
1 parent d1fd855 commit 3752c77

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.travis.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
dist: trusty
2+
3+
addons:
4+
apt:
5+
sources:
6+
- ubuntu-toolchain-r-test
7+
packages:
8+
- wget
9+
- pkg-config
10+
11+
before_install:
12+
- wget https://github.com/bazelbuild/bazel/releases/download/0.8.1/bazel_0.8.1-linux-x86_64.deb
13+
- sha256sum -c tools/bazel_0.8.1-linux-x86_64.deb.sha256
14+
- sudo dpkg -i bazel_0.8.1-linux-x86_64.deb
15+
- sudo apt-get install g++
16+
17+
install:
18+
- wget https://www.open-mpi.org/software/ompi/v3.0/downloads/openmpi-3.0.0.tar.gz
19+
- tar -xzvf openmpi-3.0.0.tar.gz
20+
- export BUILD=$PWD
21+
- export OMPI_300=$PWD/openmpi-3.0.0
22+
- export PATH=$BUILD/bin:$PATH
23+
- export LD_LIBRARY_PATH=$BUILD/lib:$LD_LIBRARY_PATH
24+
- cd $OMPI_300
25+
- ./configure --prefix=$BUILD --enable-mpi-java
26+
- make;make install
27+
28+
script:
29+
- mvn install:install-file -DcreateChecksum=true -Dpackaging=jar -Dfile=$OMPI_300/ompi/mpi/java/java/mpi.jar -DgroupId=ompi -DartifactId=ompijavabinding -Dversion=3.0.0
30+
- sudo apt-get install git build-essential automake cmake libtool-bin zip libunwind-setjmp0-dev zlib1g-dev unzip pkg-config python-setuptools -y
31+
- sudo apt-get install python-dev python-pip
32+
- bazel build --config=ubuntu twister2/...
33+
- bazel build --config=ubuntu //scripts/package:tarpkgs
34+

bazelrc

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This is from Bazel's former travis setup, to avoid blowing up the RAM usage.
2+
startup --host_jvm_args=-Xmx2500m
3+
startup --host_jvm_args=-Xms2500m
4+
startup --batch
5+
test --ram_utilization_factor=10
6+
7+
# This is so we understand failures better
8+
build --verbose_failures
9+
10+
# This is so we don't use sandboxed execution. Sandboxed execution
11+
# runs stuff in a container, and since Travis already runs its script
12+
# in a container (unless you require sudo in your .travis.yml) this
13+
# fails to run tests.
14+
build --spawn_strategy=standalone --genrule_strategy=standalone
15+
test --test_strategy=standalone
16+
17+
# Below this line, .travis.yml will cat the default bazelrc.
18+
# This is needed so Bazel starts with the base workspace in its
19+
# package path.

0 commit comments

Comments
 (0)