PrusaSlicer/package/linux/travis-setup.sh
Joseph Lenox 1709e20aed Slic3r packaging for Linux via TravisCI (#3831)
* linux packaging script should be functional now (from travis)

* Updated travis to build with distribution

* Moved cache management to script.

* Add perlbrew download

* Point to my server and use the correct perlbrew path.

* added bintray encrypted link

* used right script name

* fixed deploy path and used correct deploy

* Updated to use TRAVIS_COMMIT env variable

* updating deployment for travis

* oops, inverted logic

* Cleanup of files, renamed make_par to make_archive.

Factored out some functions to common/util.sh

* replaced slic3r dir with current dir (not script dir)

* ensured PAR::Packer is installed.

* added -v to install

* can't mix globbing and shell replacement in the same thing.

* adding some debug code, setting sudo: false

* factored out get_app_name

* added set version to utils

* prototype appimage

* cache perlbrew, added ./ to WD in make_archive

* added more noise

* sudo-false takes twice as long to build for some stupid reason.

* make unzip quiet.

* run ldd bundle to see output

* quiet down tar, set ld library path
2017-04-01 23:40:06 -05:00

18 lines
851 B
Bash
Executable File

#!/bin/bash
# Script to configure travis environment prior to build
if [ ! -e $HOME/cache/slic3r-perlbrew-5.24.tar.bz2 ]; then
curl -L "https://bintray.com/lordofhyphens/Slic3r/download_file?file_path=slic3r-perl.524.travis.tar.bz2" -o $HOME/cache/slic3r-perlbrew-5.24.tar.bz2;
fi
if [ ! -e $HOME/cache/boost-compiled.tar.bz2 ]; then
curl -L "http://www.siusgs.com/slic3r/buildserver/boost_1_63_0.built.gcc-4.9.4-buildserver.tar.bz2" -o $HOME/cache/boost-compiled.tar.bz2
fi
if [ ! -e $HOME/cache/local-lib.tar.bz2 ]; then
curl -L "http://www.siusgs.com/slic3r/buildserver/slic3r-dependencies.travis.tar.bz2" -o $HOME/cache/local-lib.tar.bz2
fi
tar -C$TRAVIS_BUILD_DIR -xjf $HOME/cache/local-lib.tar.bz2
tar -C$HOME/perl5/perlbrew/perls -xjf $HOME/cache/slic3r-perlbrew-5.24.tar.bz2
tar -C$HOME -xjf $HOME/cache/boost-compiled.tar.bz2