diff options
-rw-r--r-- | .travis.yml | 29 | ||||
-rwxr-xr-x | .travis/build.sh | 41 | ||||
-rwxr-xr-x | .travis/prepare-for-deploy.sh | 59 | ||||
-rw-r--r-- | README.md | 2 |
4 files changed, 0 insertions, 131 deletions
diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8338e81e18..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -notifications: - email: - - bazel-dev@googlegroups.com - -# Allow sudo for running apt-get. -sudo: required -os: - - linux - - osx -language: cpp -compiler: - - clang -script: - - .travis/build.sh - -before_deploy: - - .travis/prepare-for-deploy.sh - -# Upload to Google Cloud Storage. -deploy: - provider: gcs - access_key_id: GOOGK4FOMGQU2NF2FMEG - # This is encrypted, see docs.travis-ci.com/user/deployment/gcs/. - secret_access_key: - secure: KXlQaKk1G527mZ7hC+m8rblBZrOWQJr6uPX9M5S3XpSAehBDBQ26/pwvDutbQBolsvUfd+WgsXU28JINk89B1qA4HpNax0ucveM5C1K4mC5fR5EmtCThV4MDsmirzfVmAxUMOXowUjpyYX39+f+Yy2Y6GHhftIe9WaueCYJyg0I= - bucket: bucket-o-bazel - local_dir: ci - acl: public-read - skip_cleanup: true diff --git a/.travis/build.sh b/.travis/build.sh deleted file mode 100755 index 03c419f15c..0000000000 --- a/.travis/build.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -# Copyright 2015 Google Inc. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eux - -if [ -z "${TRAVIS_OS_NAME+x}" ]; then - echo "TRAVIS_OS_NAME not set, set it to 'linux' or 'osx' to run locally." - exit 1 -fi - -if [[ $TRAVIS_OS_NAME = 'osx' ]]; then - export JAVA_VERSION=1.7 - # Ignore zip tests as they requires to much space. - export BAZEL_TEST_FILTERS="-zip,-skyframe" - ./compile.sh all -else - sudo apt-get update -qq - sudo apt-get install -y netcat-traditional - sudo update-alternatives --set nc /bin/nc.traditional - export JAVA_HOME=/usr/lib/jvm/java-8-oracle - cat > .bazelrc <<EOF -startup --host_jvm_args=-Xmx2500m -startup --host_jvm_args=-Xms2500m" -test --ram_utilization_factor=10 -EOF - export BAZELRC="$(pwd)/.bazelrc" - ./compile.sh all -fi diff --git a/.travis/prepare-for-deploy.sh b/.travis/prepare-for-deploy.sh deleted file mode 100755 index 346f53e8fe..0000000000 --- a/.travis/prepare-for-deploy.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -# Copyright 2015 Google Inc. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eux - -# Create a zip with: -# * The binary. -# * A sha256 sum of the binary. -# * A README with info about the build. -function create_zip() { - local git_hash - git_hash=$(git rev-parse --short HEAD) - local bazel_dir - bazel_dir=bazel-$git_hash - mkdir $bazel_dir - cp output/bazel $bazel_dir - sha256sum $bazel_dir/bazel > $bazel_dir/sha256.txt - cat > $bazel_dir/README.md <<EOF -Bazel binary built by Travis CI -------------------------------- - -* [Build log](https://travis-ci.org/google/bazel/builds/$TRAVIS_BUILD_ID -* [Commit](https://github.com/$TRAVIS_REPO_SLUG/commit/$git_hash) -EOF - bazel_zip=bazel-${git_hash}.zip - echo "Creating $bazel_zip" - zip -r -qq $bazel_zip $bazel_dir - rm -rf $bazel_dir -} - -# Put the bazel zip in an uploaded dir. -function copy_to_upload_dir() { - local date_dir=$(date +%F) - local upload_dir=ci/$date_dir/ - mkdir -p $upload_dir - mv $bazel_zip $upload_dir - # Create a symlink to "latest" in the dir. - (cd $upload_dir; ln -s $bazel_zip bazel.zip) - echo "$bazel_zip moved to $upload_dir" -} - -mkdir -p ci -if [ "${TRAVIS_OS_NAME-}" = "linux" ]; then - create_zip - copy_to_upload_dir -fi @@ -39,5 +39,3 @@ Find more background about Bazel in our [FAQ](http://bazel.io/faq.html). * Our [governance plan](http://bazel.io/governance.html) * Future plans are in the [roadmap](http://bazel.io/roadmap.html) * For each feature, which level of [support](http://bazel.io/support.html) to expect. - -[![Build Status](https://travis-ci.org/google/bazel.svg?branch=master)](https://travis-ci.org/google/bazel) |