forked from node-tensorflow/node-tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
executable file
·63 lines (51 loc) · 1.57 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: node_js
os:
- linux
sudo: true
node_js:
- '4.1'
jdk:
- oraclejdk8
python:
- '2.7'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- wget
- oracle-java8-installer
- pkg-config
- zip
- zlib1g-dev
- python-numpy
before_install:
- sudo apt-get install gcc-4.9 g++-4.9 cpp-4.9
# Bazel hardcodes /usr/bin/gcc by default :s
# https://github.com/bazelbuild/bazel/issues/649, https://github.com/tensorflow/tensorflow/issues/336 FML
- sudo rm /usr/bin/gcc
- sudo rm /usr/bin/g++
- sudo rm /usr/bin/cpp
- sudo ln -s /usr/bin/gcc-4.9 /usr/bin/gcc
- sudo ln -s /usr/bin/g++-4.9 /usr/bin/g++
- sudo ln -s /usr/bin/cpp-4.9 /usr/bin/cpp
- /usr/bin/gcc --version
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- echo "startup --host_jvm_args=-Xmx2500m" >> .bazelrc
- echo "startup --host_jvm_args=-Xms2500m" >> .bazelrc
- echo "test --ram_utilization_factor=10" >> .bazelrc
- echo "startup --batch" >> .bazelrc
- echo "build --spawn_strategy=standalone --genrule_strategy=standalone --jobs 10 --local_resources 2048,.5,1.0" >> .bazelrc
- export BAZELRC="$(pwd)/.bazelrc"
# BAZEL
# Based on https://github.com/korfuri/bazel-travis
- wget 'https://github.com/bazelbuild/bazel/releases/download/0.1.4/bazel-0.1.4-installer-linux-x86_64.sh'
- chmod +x bazel-0.1.4-installer-linux-x86_64.sh
- ./bazel-0.1.4-installer-linux-x86_64.sh --user
- cat ~/.bazelrc >> .bazelrc
install:
- npm run _preinstall
- npm install
- node index.js