Skip to content

Commit

Permalink
Update docker build environment parameters on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Jul 30, 2017
1 parent 411ade0 commit ac8fe83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ matrix:
before_script:
- export ubuntu_mirror="$(awk '/ubuntu/ {if ($1=="deb") print $2}' /etc/apt/sources.list | sort | uniq -c | sort -n | tail -n 1 | awk '{print $2}' | awk -F '/' '{print $3}')"
script:
- docker run -i -v "${PWD}:/transgui" ubuntu:17.04 bash -c "sed -E 's/archive.ubuntu.com/$ubuntu_mirror/g' -i /etc/apt/sources.list && cd /transgui/setup/unix/ && ./debian-ubuntu-install_deps.sh && ./build.sh"
- docker run -i --rm -v "${PWD}:/transgui" ubuntu:17.04 bash -c "sed -E 's/archive.ubuntu.com/$ubuntu_mirror/g' -i /etc/apt/sources.list && cd /transgui/setup/unix/ && ./debian-ubuntu-install_deps.sh && ./build.sh"
after_success:
- md5sum ./Release/transgui-$PROG_VER-x86_64-Linux.txz
- sha1sum ./Release/transgui-$PROG_VER-x86_64-Linux.txz
Expand Down Expand Up @@ -94,7 +94,7 @@ matrix:
before_script:
- export ubuntu_mirror="$(awk '/ubuntu/ {if ($1=="deb") print $2}' /etc/apt/sources.list | sort | uniq -c | sort -n | tail -n 1 | awk '{print $2}' | awk -F '/' '{print $3}')"
script:
- docker run -i -v "${PWD}:/transgui" i386/ubuntu:17.04 linux32 --32bit i386 bash -c "sed -E 's/archive.ubuntu.com/$ubuntu_mirror/g' -i /etc/apt/sources.list && cd /transgui/setup/unix/ && ./debian-ubuntu-install_deps.sh && ./build.sh"
- docker run -i --rm -v "${PWD}:/transgui" i386/ubuntu:17.04 linux32 --32bit bash -c "sed -E 's/archive.ubuntu.com/$ubuntu_mirror/g' -i /etc/apt/sources.list && cd /transgui/setup/unix/ && ./debian-ubuntu-install_deps.sh && ./build.sh"
after_success:
- md5sum ./Release/transgui-$PROG_VER-i686-Linux.txz
- sha1sum ./Release/transgui-$PROG_VER-i686-Linux.txz
Expand Down Expand Up @@ -127,7 +127,7 @@ matrix:
- jq
- qemu-user-static
script:
- docker run -i -v "${PWD}:/transgui" -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static resin/rpi-raspbian:stretch bash -c "sed -i 's/archive.raspbian.org/mirrors.ocf.berkeley.edu\/raspbian/g' /etc/apt/sources.list && cd /transgui/setup/unix/ && ./debian-ubuntu-install_deps.sh && ./build.sh"
- docker run -i --rm -v "${PWD}:/transgui" -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static resin/rpi-raspbian:stretch bash -c "sed -i 's/archive.raspbian.org/mirrors.ocf.berkeley.edu\/raspbian/g' /etc/apt/sources.list && cd /transgui/setup/unix/ && ./debian-ubuntu-install_deps.sh && ./build.sh"
after_success:
- md5sum ./Release/transgui-$PROG_VER-armv6l-Linux.txz
- sha1sum ./Release/transgui-$PROG_VER-armv6l-Linux.txz
Expand Down

0 comments on commit ac8fe83

Please sign in to comment.