forked from daos-stack/daos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (23 loc) · 822 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
sudo: required
env:
matrix:
- DOCKER_IMAGE=ubuntu.20.04
- DOCKER_IMAGE=centos.7
language: c
language: java
jdk: openjdk8
services:
- docker
before_install:
- echo $DOCKER_IMAGE
- git submodule init
- git submodule update
- docker pull ${DOCKER_IMAGE/./:}
script:
- docker build -f utils/docker/Dockerfile.$DOCKER_IMAGE -t daos/$DOCKER_IMAGE --build-arg NOBUILD=1 --build-arg UID=$UID .
- docker run -v $PWD:/home/daos/daos:z daos/$DOCKER_IMAGE /bin/bash -c "scons --build-deps=yes install"
- if [ $TRAVIS_TEST_RESULT == "0" ]; then
docker run -v $PWD:/home/daos/daos:z daos/$DOCKER_IMAGE /bin/bash -c "cd src/client/java && mvn clean install -DskipITs -Ddaos.install.path=/home/daos/daos/install";
else
echo "ignore Java build due to DAOS build exit code, $TRAVIS_TEST_RESULT";
fi