-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
22 lines (20 loc) · 915 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
machine:
java:
version: oraclejdk8
php:
version: 7.0.7
dependencies:
cache_directories:
- ~/bazel-0.3.0
- ~/.cache/bazel
pre:
- if [ ! -x ~/bazel-0.3.0/output/bazel ]; then rm -rf bazel-0.3.0 || true; fi && if [ ! -d ~/bazel-0.3.0 ]; then pushd ~ && git clone --depth=1 -b 0.3.0 https://github.com/bazelbuild/bazel.git bazel-0.3.0 && cd bazel-0.3.0 && EXTRA_BAZEL_ARGS='--jobs=1 --local_resources=2000,1,1' ./compile.sh && popd; fi
- echo 'startup --batch' > ~/.bazelrc && echo 'build --jobs=2 --local_resources=1500,2,1 --spawn_strategy=standalone --genrule_strategy=standalone --package_path %workspace%:/home/ubuntu/bazel-0.3.0/base_workspace' >> ~/.bazelrc
- cd && mkdir -p ~/bin && ln -s ~/bazel-0.3.0/output/bazel ~/bin/bazel
- timeout 600 make prebuild
- timeout 300 make build
test:
override:
- timeout 120 make test
post:
- timeout 120 make upload