summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xci/setup_linux_environment.sh15
-rwxr-xr-xci/setup_osx_environment.sh4
2 files changed, 19 insertions, 0 deletions
diff --git a/ci/setup_linux_environment.sh b/ci/setup_linux_environment.sh
new file mode 100755
index 0000000..8801b97
--- /dev/null
+++ b/ci/setup_linux_environment.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e
+
+echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
+curl --silent https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
+sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/bazel.list" \
+ -o Dir::Etc::sourceparts="-" \
+ -o APT::Get::List-Cleanup="0"
+sudo apt-get install openjdk-8-jdk bazel
+sudo apt-get install software-properties-common
+
+sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
+sudo apt-get update
+sudo apt-get install cmake
diff --git a/ci/setup_osx_environment.sh b/ci/setup_osx_environment.sh
new file mode 100755
index 0000000..ec8f597
--- /dev/null
+++ b/ci/setup_osx_environment.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+brew update
+brew install bazel