Skip to content

Commit 7112b21

Browse files
authored
Update .travis.yml and build script for Linux (#479)
1 parent 5b04be9 commit 7112b21

File tree

3 files changed

+47
-22
lines changed

3 files changed

+47
-22
lines changed

.travis.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
language: java
2-
1+
branches:
2+
only:
3+
- master
4+
dist: trusty
5+
sudo: false
36
cache:
47
directories:
5-
- $HOME/.m2
6-
8+
- $HOME/.m2
9+
language: java
710
jdk:
8-
- oraclejdk7
9-
10-
# for running tests on Travis CI container infrastructure for faster builds
11-
sudo: true
12-
13-
14-
15-
before_install:
16-
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
17-
- sudo apt-get install build-essential git
18-
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
19-
- git clone https://github.com/xianyi/OpenBLAS && cd OpenBLAS && sudo make && sudo make install
20-
- ls /opt/OpenBLAS/lib
21-
- sudo ln -s /opt/OpenBLAS/lib/libopenblas_haswellp-*.so /usr/lib/libblas.so.3
22-
- sudo ln -s /opt/OpenBLAS/lib/libopenblas_haswellp-*.so /usr/lib/liblapack.so.3
23-
- git clone https://github.com/deeplearning4j/nd4j && cd nd4j && mvn clean install -DskipTests -Dmaven.javadoc.skip=true && cd ..
11+
- openjdk8
12+
matrix:
13+
include:
14+
- os: linux
15+
env: OS=linux-x86_64 SCALA=2.10 SPARK=1
16+
install: true
17+
script: bash ./ci/build-linux-x86_64.sh
18+
- os: linux
19+
env: OS=linux-x86_64 SCALA=2.11 SPARK=1
20+
install: true
21+
script: bash ./ci/build-linux-x86_64.sh
22+
- os: linux
23+
env: OS=linux-x86_64 SCALA=2.11 SPARK=2
24+
install: true
25+
script: bash ./ci/build-linux-x86_64.sh
2426

25-
script:
26-
- cd /home/travis/build/deeplearning4j/DataVec && chmod +x ./runtests.sh && ./runtests.sh

ci/build-linux-x86_64.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -evx
3+
4+
if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
5+
MAVEN_PHASE="deploy"
6+
else
7+
MAVEN_PHASE="install"
8+
fi
9+
10+
source change-scala-versions.sh $SCALA
11+
source change-spark-versions.sh $SPARK
12+
mvn clean $MAVEN_PHASE -B -U --settings ./ci/settings.xml -Dmaven.test.skip=true -Dlocal.software.repository=sonatype
13+

ci/settings.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
https://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
<servers>
6+
<server>
7+
<id>sonatype-nexus-snapshots</id>
8+
<username>${env.SONATYPE_USERNAME}</username>
9+
<password>${env.SONATYPE_PASSWORD}</password>
10+
</server>
11+
</servers>
12+
</settings>

0 commit comments

Comments
 (0)