Tree @upstream/5.4.0_beta.1 (Download .tar.gz)
- .github
- docker_env
- scripts
- .gitignore
- .gitlab-ci.yml
- 3D-Fuel_PLA_PRO_Black.xml.fdm_material
- 3D-Fuel_PLA_SnapSupport.xml.fdm_material
- bestfilament_abs_skyblue.xml.fdm_material
- bestfilament_petg_orange.xml.fdm_material
- bestfilament_pla_green.xml.fdm_material
- build.sh
- build_for_ultimaker.sh
- chromatik_pla.xml.fdm_material
- CMakeLists.txt
- conanfile.py
- CPackConfig.cmake
- dsm_arnitel2045_175.xml.fdm_material
- dsm_novamid1070_175.xml.fdm_material
- emotiontech_abs.xml.fdm_material
- emotiontech_absx.xml.fdm_material
- emotiontech_acetate.xml.fdm_material
- emotiontech_asax.xml.fdm_material
- emotiontech_bvoh.xml.fdm_material
- emotiontech_copa.xml.fdm_material
- emotiontech_hips.xml.fdm_material
- emotiontech_nylon_1030.xml.fdm_material
- emotiontech_nylon_1030cf.xml.fdm_material
- emotiontech_nylon_1070.xml.fdm_material
- emotiontech_pc.xml.fdm_material
- emotiontech_pekk.xml.fdm_material
- emotiontech_petg.xml.fdm_material
- emotiontech_pla.xml.fdm_material
- emotiontech_pla_hr_870.xml.fdm_material
- emotiontech_pva-m.xml.fdm_material
- emotiontech_pva-s.xml.fdm_material
- emotiontech_tpu98a.xml.fdm_material
- eryone_petg.xml.fdm_material
- eryone_pla.xml.fdm_material
- eryone_pla_glow.xml.fdm_material
- eryone_pla_matte.xml.fdm_material
- eryone_pla_wood.xml.fdm_material
- eryone_tpu.xml.fdm_material
- eSUN_PETG_Black.xml.fdm_material
- eSUN_PETG_Grey.xml.fdm_material
- eSUN_PETG_Purple.xml.fdm_material
- eSUN_PLA_PRO_Black.xml.fdm_material
- eSUN_PLA_PRO_Grey.xml.fdm_material
- eSUN_PLA_PRO_Purple.xml.fdm_material
- eSUN_PLA_PRO_White.xml.fdm_material
- Extrudr_GreenTECPro_Anthracite_175.xml.fdm_material
- Extrudr_GreenTECPro_Black_175.xml.fdm_material
- Extrudr_GreenTECPro_Blue_175.xml.fdm_material
- Extrudr_GreenTECPro_Nature_175.xml.fdm_material
- Extrudr_GreenTECPro_Red_175.xml.fdm_material
- Extrudr_GreenTECPro_Silver_175.xml.fdm_material
- Extrudr_GreenTECPro_White_175.xml.fdm_material
- fabtotum_abs.xml.fdm_material
- fabtotum_nylon.xml.fdm_material
- fabtotum_pla.xml.fdm_material
- fabtotum_tpu.xml.fdm_material
- fdm_requirements.txt
- fdplast_abs_tomato.xml.fdm_material
- fdplast_petg_gray.xml.fdm_material
- fdplast_pla_olive.xml.fdm_material
- fiberlogy_hd_pla.xml.fdm_material
- filo3d_pla.xml.fdm_material
- filo3d_pla_green.xml.fdm_material
- filo3d_pla_red.xml.fdm_material
- generic_abs.xml.fdm_material
- generic_abs_175.xml.fdm_material
- generic_asa_175.xml.fdm_material
- generic_bam.xml.fdm_material
- generic_bvoh_175.xml.fdm_material
- generic_cffcpe.xml.fdm_material
- generic_cffpa.xml.fdm_material
- generic_cpe.xml.fdm_material
- generic_cpe_175.xml.fdm_material
- generic_cpe_plus.xml.fdm_material
- generic_gffcpe.xml.fdm_material
- generic_gffpa.xml.fdm_material
- generic_hips.xml.fdm_material
- generic_hips_175.xml.fdm_material
- generic_nylon.xml.fdm_material
- generic_nylon_175.xml.fdm_material
- generic_pc.xml.fdm_material
- generic_pc_175.xml.fdm_material
- generic_petcf.xml.fdm_material
- generic_petg.xml.fdm_material
- generic_petg_175.xml.fdm_material
- generic_pla.xml.fdm_material
- generic_pla_175.xml.fdm_material
- generic_pp.xml.fdm_material
- generic_pva.xml.fdm_material
- generic_pva_175.xml.fdm_material
- generic_tough_pla.xml.fdm_material
- generic_tpu.xml.fdm_material
- generic_tpu_175.xml.fdm_material
- goofoo_abs.xml.fdm_material
- goofoo_asa.xml.fdm_material
- goofoo_bronze_pla.xml.fdm_material
- goofoo_emarble_pla.xml.fdm_material
- goofoo_esilk_pla.xml.fdm_material
- goofoo_hips.xml.fdm_material
- goofoo_pa.xml.fdm_material
- goofoo_pa_cf.xml.fdm_material
- goofoo_pc.xml.fdm_material
- goofoo_peek.xml.fdm_material
- goofoo_petg.xml.fdm_material
- goofoo_pla.xml.fdm_material
- goofoo_pva.xml.fdm_material
- goofoo_tpe_83a.xml.fdm_material
- goofoo_tpu_87a.xml.fdm_material
- goofoo_tpu_95a.xml.fdm_material
- goofoo_wood_pla.xml.fdm_material
- ideagen3D_ToughPLA.xml.fdm_material
- imade3d_petg_175.xml.fdm_material
- imade3d_pla_175.xml.fdm_material
- innofill_innoflex60_175.xml.fdm_material
- layer_one_black_pla.xml.fdm_material
- layer_one_dark_gray_pla.xml.fdm_material
- layer_one_white_pla.xml.fdm_material
- leapfrog_abs_natural.xml.fdm_material
- leapfrog_epla_natural.xml.fdm_material
- leapfrog_pva_natural.xml.fdm_material
- LICENSE
- make_docker.sh
- octofiber_pla.xml.fdm_material
- polyflex_pla.xml.fdm_material
- polymax_pla.xml.fdm_material
- polyplus_pla.xml.fdm_material
- polywood_pla.xml.fdm_material
- README.md
- redd_abs.xml.fdm_material
- redd_asa.xml.fdm_material
- redd_hips.xml.fdm_material
- redd_nylon.xml.fdm_material
- redd_petg.xml.fdm_material
- redd_pla.xml.fdm_material
- redd_tpe.xml.fdm_material
- release.sh
- run_check_material_profiles.sh
- run_shellcheck.sh
- structur3d_dap100silicone.xml.fdm_material
- tizyx_abs.xml.fdm_material
- tizyx_flex.xml.fdm_material
- tizyx_petg.xml.fdm_material
- tizyx_pla.xml.fdm_material
- tizyx_pla_bois.xml.fdm_material
- tizyx_pva.xml.fdm_material
- ultimaker_abs_black.xml.fdm_material
- ultimaker_abs_blue.xml.fdm_material
- ultimaker_abs_green.xml.fdm_material
- ultimaker_abs_grey.xml.fdm_material
- ultimaker_abs_orange.xml.fdm_material
- ultimaker_abs_pearl-gold.xml.fdm_material
- ultimaker_abs_red.xml.fdm_material
- ultimaker_abs_silver-metallic.xml.fdm_material
- ultimaker_abs_white.xml.fdm_material
- ultimaker_abs_yellow.xml.fdm_material
- ultimaker_bam.xml.fdm_material
- ultimaker_cpe_black.xml.fdm_material
- ultimaker_cpe_blue.xml.fdm_material
- ultimaker_cpe_dark-grey.xml.fdm_material
- ultimaker_cpe_green.xml.fdm_material
- ultimaker_cpe_light-grey.xml.fdm_material
- ultimaker_cpe_plus_black.xml.fdm_material
- ultimaker_cpe_plus_transparent.xml.fdm_material
- ultimaker_cpe_plus_white.xml.fdm_material
- ultimaker_cpe_red.xml.fdm_material
- ultimaker_cpe_transparent.xml.fdm_material
- ultimaker_cpe_white.xml.fdm_material
- ultimaker_cpe_yellow.xml.fdm_material
- ultimaker_nylon_black.xml.fdm_material
- ultimaker_nylon_transparent.xml.fdm_material
- ultimaker_pc_black.xml.fdm_material
- ultimaker_pc_transparent.xml.fdm_material
- ultimaker_pc_white.xml.fdm_material
- ultimaker_petcf_black.xml.fdm_material
- ultimaker_petcf_blue.xml.fdm_material
- ultimaker_petcf_gray.xml.fdm_material
- ultimaker_petg_black.xml.fdm_material
- ultimaker_petg_blue.xml.fdm_material
- ultimaker_petg_blue_translucent.xml.fdm_material
- ultimaker_petg_green.xml.fdm_material
- ultimaker_petg_green_translucent.xml.fdm_material
- ultimaker_petg_grey.xml.fdm_material
- ultimaker_petg_orange.xml.fdm_material
- ultimaker_petg_red.xml.fdm_material
- ultimaker_petg_red_translucent.xml.fdm_material
- ultimaker_petg_silver.xml.fdm_material
- ultimaker_petg_transparent.xml.fdm_material
- ultimaker_petg_white.xml.fdm_material
- ultimaker_petg_yellow.xml.fdm_material
- ultimaker_petg_yellow_fluorescent.xml.fdm_material
- ultimaker_pla_black.xml.fdm_material
- ultimaker_pla_blue.xml.fdm_material
- ultimaker_pla_green.xml.fdm_material
- ultimaker_pla_magenta.xml.fdm_material
- ultimaker_pla_orange.xml.fdm_material
- ultimaker_pla_pearl-white.xml.fdm_material
- ultimaker_pla_red.xml.fdm_material
- ultimaker_pla_silver-metallic.xml.fdm_material
- ultimaker_pla_transparent.xml.fdm_material
- ultimaker_pla_white.xml.fdm_material
- ultimaker_pla_yellow.xml.fdm_material
- ultimaker_pp_transparent.xml.fdm_material
- ultimaker_pva.xml.fdm_material
- ultimaker_tough_pla_black.xml.fdm_material
- ultimaker_tough_pla_blue.xml.fdm_material
- ultimaker_tough_pla_gray.xml.fdm_material
- ultimaker_tough_pla_green.xml.fdm_material
- ultimaker_tough_pla_red.xml.fdm_material
- ultimaker_tough_pla_white.xml.fdm_material
- ultimaker_tough_pla_yellow.xml.fdm_material
- ultimaker_tpu_black.xml.fdm_material
- ultimaker_tpu_blue.xml.fdm_material
- ultimaker_tpu_red.xml.fdm_material
- ultimaker_tpu_white.xml.fdm_material
- verbatim_bvoh_175.xml.fdm_material
- Vertex_Delta_ABS.xml.fdm_material
- Vertex_Delta_PET.xml.fdm_material
- Vertex_Delta_PLA.xml.fdm_material
- Vertex_Delta_PLA_Glitter.xml.fdm_material
- Vertex_Delta_PLA_Mat.xml.fdm_material
- Vertex_Delta_PLA_Satin.xml.fdm_material
- Vertex_Delta_PLA_Wood.xml.fdm_material
- Vertex_Delta_TPU.xml.fdm_material
- volumic_abs_ultra.xml.fdm_material
- volumic_arma_ultra.xml.fdm_material
- volumic_asa_ultra.xml.fdm_material
- volumic_br80_ultra.xml.fdm_material
- volumic_bumper_ultra.xml.fdm_material
- volumic_cu80_ultra.xml.fdm_material
- volumic_flex93_ultra.xml.fdm_material
- volumic_medical_ultra.xml.fdm_material
- volumic_nylon_ultra.xml.fdm_material
- volumic_pekk_carbone.xml.fdm_material
- volumic_petg_ultra.xml.fdm_material
- volumic_petgcarbone_ultra.xml.fdm_material
- volumic_pla_ultra.xml.fdm_material
- volumic_pp_ultra.xml.fdm_material
- volumic_strong_ultra.xml.fdm_material
- volumic_support_ultra.xml.fdm_material
- xyzprinting_abs.xml.fdm_material
- xyzprinting_antibact_pla.xml.fdm_material
- xyzprinting_carbon_fiber.xml.fdm_material
- xyzprinting_colorinkjet_pla.xml.fdm_material
- xyzprinting_flexible.xml.fdm_material
- xyzprinting_metallic_pla.xml.fdm_material
- xyzprinting_nylon.xml.fdm_material
- xyzprinting_pahtcf15.xml.fdm_material
- xyzprinting_pc.xml.fdm_material
- xyzprinting_petcf15.xml.fdm_material
- xyzprinting_petg.xml.fdm_material
- xyzprinting_pla.xml.fdm_material
- xyzprinting_ppgf30.xml.fdm_material
- xyzprinting_tough_pla.xml.fdm_material
- xyzprinting_tpu.xml.fdm_material
- zyyx_pro_flex.xml.fdm_material
- zyyx_pro_pla.xml.fdm_material
build_for_ultimaker.sh @upstream/5.4.0_beta.1 — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | #!/bin/bash # # SPDX-License-Identifier: LGPL-3.0+ # # Copyright (C) 2019 Ultimaker B.V. # set -eu ARCH="armhf" SRC_DIR="$(pwd)" RELEASE_VERSION="${RELEASE_VERSION:-999.999.999}" DOCKER_WORK_DIR="/build" BUILD_DIR_TEMPLATE="_build_${ARCH}" BUILD_DIR="${BUILD_DIR:-${SRC_DIR}/${BUILD_DIR_TEMPLATE}}" run_env_check="yes" run_linters="yes" run_tests="yes" # Make sure to pass an empty argument to make_docker, else any arguments passed to build_for_ultimaker is passed to make_docker instead! . ./make_docker.sh "" env_check() { run_in_docker "./docker_env/buildenv_check.sh" } run_build() { run_in_docker "./build.sh" "${@}" } deliver_pkg() { run_in_docker chown -R "$(id -u):$(id -g)" "${DOCKER_WORK_DIR}" cp "${BUILD_DIR}/"*".deb" "./" } run_tests() { echo "Testing!" # These tests should never fail! See .gitlab-ci.yml ./run_check_material_profiles.sh || echo "Material Profile Check Failed!" } run_linters() { run_shellcheck } run_shellcheck() { docker run \ --rm \ -v "$(pwd):${DOCKER_WORK_DIR}" \ -w "${DOCKER_WORK_DIR}" \ "registry.hub.docker.com/koalaman/shellcheck-alpine:stable" \ "./run_shellcheck.sh" } usage() { echo "Usage: ${0} [OPTIONS]" echo " -c Skip build environment checks" echo " -h Print usage" echo " -l Skip code linting" echo " -t Skip tests" } while getopts ":chlt" options; do case "${options}" in c) run_env_check="no" ;; h) usage exit 0 ;; l) run_linters="no" ;; t) run_tests="no" ;; :) echo "Option -${OPTARG} requires an argument." exit 1 ;; ?) echo "Invalid option: -${OPTARG}" exit 1 ;; esac done shift "$((OPTIND - 1))" if ! command -V docker; then echo "Docker not found, docker-less builds are not supported." exit 1 fi if [ "${run_env_check}" = "yes" ]; then env_check fi if [ "${run_linters}" = "yes" ]; then run_linters fi run_build "${@}" if [ "${run_tests}" = "yes" ]; then run_tests fi deliver_pkg exit 0 |