Ray Milkey | 2c9ed83 | 2018-08-07 10:45:52 -0700 | [diff] [blame] | 1 | #!/bin/bash -ex |
| 2 | |
| 3 | # exit on errors |
| 4 | set -eu -o pipefail |
| 5 | |
| 6 | ONOS_ROOT=`pwd` |
| 7 | . tools/build/envDefaults |
| 8 | |
| 9 | curl -L -o bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.15.2/bazel-0.15.2-installer-linux-x86_64.sh |
| 10 | chmod +x bazel.sh |
| 11 | ./bazel.sh --user |
| 12 | PATH=$PATH:/home/jenkins/bin |
| 13 | |
Ray Milkey | bba274f | 2018-08-08 11:14:51 -0700 | [diff] [blame] | 14 | bazel build onos |
Ray Milkey | f7df525 | 2018-08-08 14:50:32 -0700 | [diff] [blame] | 15 | bazel query "tests(//...)" | SHLVL=1 xargs bazel test |
Ray Milkey | cd130d6 | 2018-08-16 14:59:31 -0700 | [diff] [blame^] | 16 | bazel run //:buildifier_check |