home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (.travis.yml)

This example Java source code file (.travis.yml) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

canova, dskiptests, java_opts=-xmx2g, ld_library_path, ld_library_path:/usr/local/lib, openblas, travis

The .travis.yml Java example source code

language: java

cache:
  directories:
  - $HOME/.m2

jdk:
  - oraclejdk7

# for running tests on Travis CI container infrastructure for faster builds
sudo: true

env:
  global:
    JAVA_OPTS=-Xmx2g

before_install:
  - sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml

  - sudo apt-get install build-essential git
  - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
  - git clone https://github.com/xianyi/OpenBLAS && cd OpenBLAS && sudo make && sudo make install
  - ls /opt/OpenBLAS/lib
  - sudo ln -s /opt/OpenBLAS/lib/libopenblas_haswellp-*.so /usr/lib/libblas.so.3
  - sudo ln -s /opt/OpenBLAS/lib/libopenblas_haswellp-*.so /usr/lib/liblapack.so.3
  - git clone https://github.com/deeplearning4j/nd4j
  - cd nd4j && mvn clean install -DskipTests -Dmaven.javadoc.skip=true
  - cd .. && git clone https://github.com/deeplearning4j/Canova && cd Canova && mvn clean install -DskipTests -Dmaven.javadoc.skip=true

script:
language: java

cache:
  directories:
  - $HOME/.m2

jdk:
  - oraclejdk7

# for running tests on Travis CI container infrastructure for faster builds
sudo: true

before_install:
  - sudo apt-get install build-essential git
  - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
  - git clone https://github.com/xianyi/OpenBLAS && cd OpenBLAS && sudo make && sudo make install
  - ls /opt/OpenBLAS/lib
  - sudo ln -s /opt/OpenBLAS/lib/libopenblas_haswellp-*.so /usr/lib/libblas.so.3
  - sudo ln -s /opt/OpenBLAS/lib/libopenblas_haswellp-*.so /usr/lib/liblapack.so.3
  - git clone https://github.com/deeplearning4j/nd4j && cd nd4j && mvn clean install -DskipTests -Dmaven.javadoc.skip=true && cd ..
  - git clone https://github.com/deeplearning4j/Canova && cd Canova && mvn clean install -DskipTests -Dmaven.javadoc.skip=true && cd ..


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

Other Java examples (source code examples)

Here is a short list of links related to this Java .travis.yml source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.