Fix travis buildenv in prepare_tarball
This commit is contained in:
parent
2bb785c71f
commit
83a7d9486c
7 changed files with 19 additions and 7 deletions
|
|
@ -38,7 +38,7 @@ jobs:
|
||||||
stage: "Build"
|
stage: "Build"
|
||||||
env:
|
env:
|
||||||
- CROSS_COMPILE=mingw32
|
- CROSS_COMPILE=mingw32
|
||||||
- CONTAINER=cross
|
- CONTAINER=archlinux
|
||||||
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw32"
|
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw32"
|
||||||
before_install: .travis/before_install_mingw.sh
|
before_install: .travis/before_install_mingw.sh
|
||||||
install: .travis/install_mingw.sh
|
install: .travis/install_mingw.sh
|
||||||
|
|
@ -48,7 +48,7 @@ jobs:
|
||||||
- name: "Windows mingw64"
|
- name: "Windows mingw64"
|
||||||
env:
|
env:
|
||||||
- CROSS_COMPILE=mingw64
|
- CROSS_COMPILE=mingw64
|
||||||
- CONTAINER=cross
|
- CONTAINER=archlinux
|
||||||
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw64"
|
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw64"
|
||||||
before_install: .travis/before_install_mingw.sh
|
before_install: .travis/before_install_mingw.sh
|
||||||
install: .travis/install_mingw.sh
|
install: .travis/install_mingw.sh
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
. .travis/mingw_container.sh
|
. .travis/docker_container.sh
|
||||||
|
|
||||||
buildenv bash -c "echo Hello from container" # ensure to start the container
|
buildenv bash -c "echo Hello from container" # ensure to start the container
|
||||||
docker cp "$container":/etc/pacman.conf pacman.conf
|
docker cp "$container":/etc/pacman.conf pacman.conf
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
buildenv() {
|
buildenv() {
|
||||||
setup_container archlinux
|
setup_container "$CONTAINER"
|
||||||
docker exec -w "$(pwd)" -i -t "$container" "$@"
|
docker exec -w "$(pwd)" -i -t "$container" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
. .travis/mingw_container.sh
|
. .travis/docker_container.sh
|
||||||
|
|
||||||
buildenv pacman -Sqy --noconfirm
|
buildenv pacman -Sqy --noconfirm
|
||||||
buildenv pacman -Sq --noconfirm base-devel wget mingw-w64-cmake mingw-w64-gcc mingw-w64-pkg-config mingw-w64-libsndfile
|
buildenv pacman -Sq --noconfirm base-devel wget mingw-w64-cmake mingw-w64-gcc mingw-w64-pkg-config mingw-w64-libsndfile
|
||||||
|
|
|
||||||
7
.travis/no_container.sh
Executable file
7
.travis/no_container.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
buildenv() {
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
. .travis/mingw_container.sh
|
|
||||||
|
if ! [ -z "$CONTAINER" ]; then
|
||||||
|
. .travis/docker_container.sh
|
||||||
|
else
|
||||||
|
. .travis/no_container.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# Do not prepare a tarball without a tag
|
# Do not prepare a tarball without a tag
|
||||||
if [[ ${TRAVIS_TAG} == "" ]]; then
|
if [[ ${TRAVIS_TAG} == "" ]]; then
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
. .travis/mingw_container.sh
|
. .travis/docker_container.sh
|
||||||
|
|
||||||
mkdir -p build/${INSTALL_DIR} && cd build
|
mkdir -p build/${INSTALL_DIR} && cd build
|
||||||
if [[ ${CROSS_COMPILE} == "mingw32" ]]; then
|
if [[ ${CROSS_COMPILE} == "mingw32" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue