mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
b3036c55a6
These always fail at present. We'll need to look into making them not always fail so we can enable them and get some useful signal from them.
28 lines
735 B
Bash
Executable File
28 lines
735 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ACTION="$1"
|
|
|
|
set -eu
|
|
|
|
travis_install() {
|
|
# Get bazel.
|
|
wget https://github.com/bazelbuild/bazel/releases/download/0.15.0/bazel-0.15.0-installer-linux-x86_64.sh
|
|
chmod +x bazel-0.15.0-installer-linux-x86_64.sh
|
|
./bazel-0.15.0-installer-linux-x86_64.sh --user
|
|
echo 'build --jobs=4 --curses=no --verbose_failures' >> $HOME/.bazelrc
|
|
echo "import %workspace%/tools/bazelrc/linux-$CC" >> $HOME/.bazelrc
|
|
}
|
|
|
|
travis_script() {
|
|
# TODO(iphydf): Make tests have a chance to succeed.
|
|
# Run the tests, but if they fail, at least we should be able to build.
|
|
# bazel test //c-toxcore/... || bazel build //c-toxcore/...
|
|
bazel build //c-toxcore/...
|
|
}
|
|
|
|
if [ "-z" "$ACTION" ]; then
|
|
"travis_script"
|
|
else
|
|
"travis_$ACTION"
|
|
fi
|