.travis-install.sh 838 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. #
  3. # Install dependencies that aren't available as Ubuntu packages.
  4. #
  5. # Everything goes into $HOME/local.
  6. #
  7. # Scripts should add
  8. # - $HOME/local/bin to PATH
  9. # - $HOME/local/lib to LD_LIBRARY_PATH
  10. #
  11. cd
  12. mkdir -p local
  13. # Install swift
  14. SWIFT_BRANCH=swift-3.0.2-release
  15. SWIFT_VERSION=swift-3.0.2-RELEASE
  16. SWIFT_PLATFORM=ubuntu14.04
  17. SWIFT_URL=https://swift.org/builds/$SWIFT_BRANCH/$(echo "$SWIFT_PLATFORM" | tr -d .)/$SWIFT_VERSION/$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz
  18. echo $SWIFT_URL
  19. curl -fSsL $SWIFT_URL -o swift.tar.gz
  20. tar -xzf swift.tar.gz --strip-components=2 --directory=local
  21. # Install protoc
  22. PROTOC_URL=https://github.com/google/protobuf/releases/download/v3.2.0rc2/protoc-3.2.0rc2-linux-x86_64.zip
  23. echo $PROTOC_URL
  24. curl -fSsL $PROTOC_URL -o protoc.zip
  25. unzip protoc.zip -d local
  26. # Verify installation
  27. find local