.travis-install.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. #
  3. # Copyright 2017, gRPC Authors All rights reserved.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. #
  18. # Install dependencies that aren't available as Ubuntu packages.
  19. #
  20. # Everything goes into $HOME/local.
  21. #
  22. # Scripts should add
  23. # - $HOME/local/bin to PATH
  24. # - $HOME/local/lib to LD_LIBRARY_PATH
  25. #
  26. cd
  27. mkdir -p local
  28. # Install swift
  29. SWIFT_URL=https://swift.org/builds/swift-4.0-branch/ubuntu1404/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-09-01-a/swift-4.0-DEVELOPMENT-SNAPSHOT-2017-09-01-a-ubuntu14.04.tar.gz
  30. echo $SWIFT_URL
  31. curl -fSsL $SWIFT_URL -o swift.tar.gz
  32. tar -xzf swift.tar.gz --strip-components=2 --directory=local
  33. # Install protoc
  34. PROTOC_URL=https://github.com/google/protobuf/releases/download/v3.2.0rc2/protoc-3.2.0rc2-linux-x86_64.zip
  35. echo $PROTOC_URL
  36. curl -fSsL $PROTOC_URL -o protoc.zip
  37. unzip protoc.zip -d local
  38. # Verify installation
  39. find local