travis-setup.sh 1.6 KB

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # Script to configure travis environment prior to build
  3. WXVERSION=302
  4. CACHE=$HOME/cache
  5. mkdir -p $CACHE
  6. if [ ! -e $CACHE/slic3r-perlbrew-5.24.tar.bz2 ]; then
  7. echo "Downloading http://www.siusgs.com/slic3r/buildserver/slic3r-perl.524.travis.tar.bz2 => $CACHE/slic3r-perlbrew-5.24.tar.bz2"
  8. curl -L "http://www.siusgs.com/slic3r/buildserver/slic3r-perl.524.travis.tar.bz2" -o $CACHE/slic3r-perlbrew-5.24.tar.bz2;
  9. fi
  10. if [ ! -e $CACHE/boost-compiled.tar.bz2 ]; then
  11. echo "Downloading http://www.siusgs.com/slic3r/buildserver/boost_1_63_0.built.gcc-4.9.4-buildserver.tar.bz2 => $CACHE/boost-compiled.tar.bz2"
  12. curl -L "http://www.siusgs.com/slic3r/buildserver/boost_1_63_0.built.gcc-4.9.4-buildserver.tar.bz2" -o $CACHE/boost-compiled.tar.bz2
  13. fi
  14. if [ ! -e $CACHE/local-lib-wx${WXVERSION}.tar.bz2 ]; then
  15. echo "Downloading http://www.siusgs.com/slic3r/buildserver/slic3r-dependencies.travis-wx${WXVERSION}.tar.bz2 => $CACHE/local-lib-wx${WXVERSION}.tar.bz2"
  16. curl -L "http://www.siusgs.com/slic3r/buildserver/slic3r-dependencies.travis-wx${WXVERSION}.tar.bz2" -o $CACHE/local-lib-wx${WXVERSION}.tar.bz2
  17. fi
  18. if [ ! -e $CACHE/wx${WXVERSION}.tar.bz2 ]; then
  19. echo "Downloading http://www.siusgs.com/slic3r/buildserver/wx${WXVERSION}-libs.tar.bz2 => $CACHE/wx${WXVERSION}.tar.bz2"
  20. curl -L "http://www.siusgs.com/slic3r/buildserver/wx${WXVERSION}-libs.tar.bz2" -o $CACHE/wx${WXVERSION}.tar.bz2
  21. fi
  22. tar -C$TRAVIS_BUILD_DIR -xjf $CACHE/local-lib-wx${WXVERSION}.tar.bz2
  23. tar -C$HOME/perl5/perlbrew/perls -xjf $CACHE/slic3r-perlbrew-5.24.tar.bz2
  24. tar -C$HOME -xjf $CACHE/boost-compiled.tar.bz2
  25. tar -C$HOME -xjf $CACHE/wx${WXVERSION}.tar.bz2