forked from eaplatanios/tensorflow_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (41 loc) · 1.73 KB
/
.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
language: scala
scala: 2.12.3
matrix:
include:
- os: linux
dist: trusty
sudo: required
jdk: oraclejdk8
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
# - os: osx
# osx_image: xcode8
# env:
# - SBT_VERSION_CMD="^validate ^validateUniversal"
env:
- CXX=g++-4.9
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo unzip protoc-3.3.0-linux-x86_64.zip -d /usr; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated gcc49 || brew upgrade gcc49; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated protobuf || brew upgrade protobuf; fi
- rvm use 2.2.5 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export TF_LIB_NAME=libtensorflow-cpu-linux-x86_64.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export TF_LIB_URL=http://ci.tensorflow.org/view/Nightly/job/nightly-libtensorflow/TYPE=cpu-slave/lastSuccessfulBuild/artifact/lib_package/$TF_LIB_NAME; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export TF_LIB_NAME=libtensorflow-cpu-darwin-x86_64.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export TF_LIB_URL=http://ci.tensorflow.org/view/Nightly/job/nightly-libtensorflow/TYPE=mac-slave/lastSuccessfulBuild/artifact/lib_package/$TF_LIB_NAME; fi
- wget $TF_LIB_URL
- sudo tar xvf $TF_LIB_NAME -C /usr
script:
- sbt compile
# - sbt ++$TRAVIS_SCALA_VERSION test