mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
commit
fd4115953d
@ -1,100 +0,0 @@
|
||||
|
||||
env:
|
||||
- IMAGE=android-arm
|
||||
- IMAGE=browser-asmjs
|
||||
- IMAGE=linux-arm64
|
||||
- IMAGE=linux-armv5
|
||||
- IMAGE=linux-armv6
|
||||
- IMAGE=linux-armv7
|
||||
- IMAGE=linux-mipsel
|
||||
- IMAGE=linux-ppc64le
|
||||
- IMAGE=linux-x64
|
||||
- IMAGE=linux-x86
|
||||
- IMAGE=manylinux-x64
|
||||
- IMAGE=manylinux-x86
|
||||
- IMAGE=windows-x64
|
||||
- IMAGE=windows-x86
|
||||
command:
|
||||
- |
|
||||
if [[ $STEP == "dependencies" ]]; then
|
||||
if [[ $CIRCLE_NODE_INDEX == 0 ]]; then
|
||||
if [[ ! -f ~/BASE_AVAILABLE ]]; then
|
||||
|
||||
if [[ -e ~/docker/base.tar ]]; then
|
||||
echo "Loading base.tar from ~/docker cache"
|
||||
time docker load -i ~/docker/base.tar
|
||||
echo "Loading base.tar from ~/docker cache - done"
|
||||
fi
|
||||
|
||||
echo "Pulling dockcross/base"
|
||||
time docker pull dockcross/base | cat
|
||||
echo "Pulling dockcross/base - done"
|
||||
|
||||
time make base.test
|
||||
|
||||
echo "Saving debian:jessie dockcross/base into ~/docker cache"
|
||||
mkdir -p ~/docker; time docker save -o ~/docker/base.tar debian:jessie dockcross/base
|
||||
echo "Saving debian:jessie dockcross/base into ~/docker cache - done"
|
||||
|
||||
touch ~/BASE_AVAILABLE
|
||||
else
|
||||
echo "Base image already available"
|
||||
fi
|
||||
else
|
||||
if [[ ! -f ~/BASE_DOWNLOADED ]]; then
|
||||
echo "Waiting for node0"
|
||||
while true; do
|
||||
sleep 5
|
||||
ssh -q node0 [[ -f ~/BASE_AVAILABLE ]]
|
||||
exit_code=$?
|
||||
if [[ $exit_code -eq 0 ]]; then break; elif [[ $exit_code -eq 1 ]]; then echo -n "."; else exit $exit_code;fi
|
||||
done
|
||||
echo ""
|
||||
echo "Waiting for node0 - done"
|
||||
|
||||
echo "Copying base image from node0"
|
||||
mkdir -p ~/docker; time scp node0:~/docker/base.tar ~/docker/base.tar
|
||||
echo "Copying base image from node0 - done"
|
||||
|
||||
touch ~/BASE_DOWNLOADED
|
||||
else
|
||||
echo "Base image already downloaded"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [[ $STEP == "test" ]]; then
|
||||
if [[ -e ~/docker/$IMAGE.tar ]]; then
|
||||
echo "Loading $IMAGE.tar from ~/docker cache"
|
||||
time docker load -i ~/docker/$IMAGE.tar
|
||||
echo "Loading $IMAGE.tar from ~/docker cache - done"
|
||||
fi
|
||||
|
||||
echo "Pulling dockcross/$IMAGE"
|
||||
time docker pull dockcross/$IMAGE | cat
|
||||
echo "Pulling dockcross/$IMAGE - done"
|
||||
|
||||
echo "Loading base.tar from ~/docker cache"
|
||||
time docker load -i ~/docker/base.tar
|
||||
echo "Loading base.tar from ~/docker cache - done"
|
||||
|
||||
time make $IMAGE.test
|
||||
|
||||
echo "Saving dockcross/$IMAGE into ~/docker cache"
|
||||
mkdir -p ~/docker; time docker save dockcross/$IMAGE > ~/docker/$IMAGE.tar
|
||||
echo "Saving dockcross/$IMAGE into ~/docker cache - done"
|
||||
fi
|
||||
if [[ $STEP == "deployment" ]] && [[ "$CIRCLE_BRANCH" == "master" ]]; then
|
||||
echo "Docker login"
|
||||
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||
echo "Docker login - done"
|
||||
if [[ $CIRCLE_NODE_INDEX == 0 ]] && [[ ! -f ~/BASE_PUSHED ]]; then
|
||||
echo "Pushing dockcross/base"
|
||||
time docker push dockcross/base | cat
|
||||
echo "Pulling dockcross/base - done"
|
||||
touch ~/BASE_PUSHED
|
||||
fi
|
||||
|
||||
echo "Pushing dockcross/$IMAGE"
|
||||
time docker push dockcross/$IMAGE | cat
|
||||
echo "Pushing dockcross/$IMAGE - done"
|
||||
fi
|
538
.circleci/config.yml
Normal file
538
.circleci/config.yml
Normal file
@ -0,0 +1,538 @@
|
||||
version: 2
|
||||
jobs:
|
||||
base:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: base build
|
||||
command: |
|
||||
docker pull debian:jessie
|
||||
make base
|
||||
mkdir -p ~/docker
|
||||
docker save -o ~/docker/base.tar debian:jessie dockcross/base:latest
|
||||
- run:
|
||||
name: base test
|
||||
command: |
|
||||
make base.test
|
||||
- save_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
paths:
|
||||
- ~/docker/base.tar
|
||||
- ~/dockcross
|
||||
android-arm:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: android-arm build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make android-arm
|
||||
docker save -o ~/docker/android-arm.tar dockcross/android-arm:latest
|
||||
- run:
|
||||
name: android-arm test
|
||||
command: |
|
||||
make android-arm.test
|
||||
- save_cache:
|
||||
key: android-arm-assets-{{ .Revision }}
|
||||
paths: ~/docker/android-arm.tar
|
||||
browser-asmjs:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: browser-asmjs build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make browser-asmjs
|
||||
docker save -o ~/docker/browser-asmjs.tar dockcross/browser-asmjs:latest
|
||||
- run:
|
||||
name: browser-asmjs test
|
||||
command: |
|
||||
make browser-asmjs.test
|
||||
- save_cache:
|
||||
key: browser-asmjs-assets-{{ .Revision }}
|
||||
paths: ~/docker/browser-asmjs.tar
|
||||
linux-arm64:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-arm64 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-arm64
|
||||
docker save -o ~/docker/linux-arm64.tar dockcross/linux-arm64:latest
|
||||
- run:
|
||||
name: linux-arm64 test
|
||||
command: |
|
||||
make linux-arm64.test
|
||||
- save_cache:
|
||||
key: linux-arm64-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-arm64.tar
|
||||
linux-armv5:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-armv5 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-armv5
|
||||
docker save -o ~/docker/linux-armv5.tar dockcross/linux-armv5:latest
|
||||
- run:
|
||||
name: linux-armv5 test
|
||||
command: |
|
||||
make linux-armv5.test
|
||||
- save_cache:
|
||||
key: linux-armv5-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-armv5.tar
|
||||
linux-armv6:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-armv6 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-armv6
|
||||
docker save -o ~/docker/linux-armv6.tar dockcross/linux-armv6:latest
|
||||
- run:
|
||||
name: linux-armv6 test
|
||||
command: |
|
||||
make linux-armv6.test
|
||||
- save_cache:
|
||||
key: linux-armv6-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-armv6.tar
|
||||
linux-armv7:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-armv7 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-armv7
|
||||
docker save -o ~/docker/linux-armv7.tar dockcross/linux-armv7:latest
|
||||
- run:
|
||||
name: linux-armv7 test
|
||||
command: |
|
||||
make linux-armv7.test
|
||||
- save_cache:
|
||||
key: linux-armv7-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-armv7.tar
|
||||
linux-mipsel:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-mipsel build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-mipsel
|
||||
docker save -o ~/docker/linux-mipsel.tar dockcross/linux-mipsel:latest
|
||||
- run:
|
||||
name: linux-mipsel test
|
||||
command: |
|
||||
make linux-mipsel.test
|
||||
- save_cache:
|
||||
key: linux-mipsel-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-mipsel.tar
|
||||
linux-ppc64le:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-ppc64le build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-ppc64le
|
||||
docker save -o ~/docker/linux-ppc64le.tar dockcross/linux-ppc64le:latest
|
||||
- run:
|
||||
name: linux-ppc64le test
|
||||
command: |
|
||||
make linux-ppc64le.test
|
||||
- save_cache:
|
||||
key: linux-ppc64le-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-ppc64le.tar
|
||||
linux-x64:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-x64 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-x64
|
||||
docker save -o ~/docker/linux-x64.tar dockcross/linux-x64:latest
|
||||
- run:
|
||||
name: linux-x64 test
|
||||
command: |
|
||||
make linux-x64.test
|
||||
- save_cache:
|
||||
key: linux-x64-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-x64.tar
|
||||
linux-x86:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: linux-x86 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make linux-x86
|
||||
docker save -o ~/docker/linux-x86.tar dockcross/linux-x86:latest
|
||||
- run:
|
||||
name: linux-x86 test
|
||||
command: |
|
||||
make linux-x86.test
|
||||
- save_cache:
|
||||
key: linux-x86-assets-{{ .Revision }}
|
||||
paths: ~/docker/linux-x86.tar
|
||||
manylinux-x64:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: manylinux-x64 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make manylinux-x64
|
||||
docker save -o ~/docker/manylinux-x64.tar dockcross/manylinux-x64:latest
|
||||
- run:
|
||||
name: manylinux-x64 test
|
||||
command: |
|
||||
make manylinux-x64.test
|
||||
- save_cache:
|
||||
key: manylinux-x64-assets-{{ .Revision }}
|
||||
paths: ~/docker/manylinux-x64.tar
|
||||
manylinux-x86:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
name: manylinux-x86 build
|
||||
no_output_timeout: 1.5h
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make manylinux-x86
|
||||
docker save -o ~/docker/manylinux-x86.tar dockcross/manylinux-x86:latest
|
||||
- run:
|
||||
name: manylinux-x86 test
|
||||
command: |
|
||||
make manylinux-x86.test
|
||||
- save_cache:
|
||||
key: manylinux-x86-assets-{{ .Revision }}
|
||||
paths: ~/docker/manylinux-x86.tar
|
||||
windows-x64:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
no_output_timeout: 1.5h
|
||||
name: windows-x64 build
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make windows-x64
|
||||
docker save -o ~/docker/windows-x64.tar dockcross/windows-x64:latest
|
||||
- run:
|
||||
name: windows-x64 test
|
||||
command: |
|
||||
make windows-x64.test
|
||||
- save_cache:
|
||||
key: windows-x64-assets-{{ .Revision }}
|
||||
paths: ~/docker/windows-x64.tar
|
||||
windows-x86:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- run:
|
||||
no_output_timeout: 1.5h
|
||||
name: windows-x86 build
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
make windows-x86
|
||||
docker save -o ~/docker/windows-x86.tar dockcross/windows-x86:latest
|
||||
- run:
|
||||
name: windows-x86 test
|
||||
command: |
|
||||
make windows-x86.test
|
||||
- save_cache:
|
||||
key: windows-x86-assets-{{ .Revision }}
|
||||
paths: ~/docker/windows-x86.tar
|
||||
deploy:
|
||||
machine: true
|
||||
working_directory: ~/dockcross
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: base-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy base
|
||||
command: |
|
||||
docker load -i ~/docker/base.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/base:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: android-arm-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy android-arm
|
||||
command: |
|
||||
docker load -i ~/docker/android-arm.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/android-arm:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: browser-asmjs-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy browser-asmjs
|
||||
command: |
|
||||
docker load -i ~/docker/browser-asmjs.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/browser-asmjs:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-arm64-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-arm64
|
||||
command: |
|
||||
docker load -i ~/docker/linux-arm64.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-arm64:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-armv5-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-armv5
|
||||
command: |
|
||||
docker load -i ~/docker/linux-armv5.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-armv5:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-armv6-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-armv6
|
||||
command: |
|
||||
docker load -i ~/docker/linux-armv6.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-armv6:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-armv7-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-armv7
|
||||
command: |
|
||||
docker load -i ~/docker/linux-armv7.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-armv7:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-mipsel-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-mipsel
|
||||
command: |
|
||||
docker load -i ~/docker/linux-mipsel.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-mipsel:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-ppc64le-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-ppc64le
|
||||
command: |
|
||||
docker load -i ~/docker/linux-ppc64le.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-ppc64le:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-x64-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-x64
|
||||
command: |
|
||||
docker load -i ~/docker/linux-x64.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-x64:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: linux-x86-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy linux-x86
|
||||
command: |
|
||||
docker load -i ~/docker/linux-x86.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/linux-x86:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: manylinux-x64-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy manylinux-x64
|
||||
command: |
|
||||
docker load -i ~/docker/manylinux-x64.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/manylinux-x64:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: manylinux-x86-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy manylinux-x86
|
||||
command: |
|
||||
docker load -i ~/docker/manylinux-x86.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/manylinux-x86:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: windows-x64-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy windows-x64
|
||||
command: |
|
||||
docker load -i ~/docker/windows-x64.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/windows-x64:latest
|
||||
fi
|
||||
- restore_cache:
|
||||
key: windows-x86-assets-{{ .Revision }}
|
||||
- deploy:
|
||||
name: Deploy windows-x86
|
||||
command: |
|
||||
docker load -i ~/docker/windows-x86.tar
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker push dockcross/windows-x86:latest
|
||||
fi
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build-test-deploy:
|
||||
jobs:
|
||||
- base
|
||||
- android-arm:
|
||||
requires:
|
||||
- base
|
||||
- browser-asmjs:
|
||||
requires:
|
||||
- base
|
||||
- linux-arm64:
|
||||
requires:
|
||||
- base
|
||||
- linux-armv5:
|
||||
requires:
|
||||
- base
|
||||
- linux-armv6:
|
||||
requires:
|
||||
- base
|
||||
- linux-armv7:
|
||||
requires:
|
||||
- base
|
||||
- linux-mipsel:
|
||||
requires:
|
||||
- base
|
||||
- linux-ppc64le:
|
||||
requires:
|
||||
- base
|
||||
- linux-x64:
|
||||
requires:
|
||||
- base
|
||||
- linux-x86:
|
||||
requires:
|
||||
- base
|
||||
- manylinux-x64:
|
||||
requires:
|
||||
- base
|
||||
- manylinux-x86:
|
||||
requires:
|
||||
- base
|
||||
- windows-x64:
|
||||
requires:
|
||||
- base
|
||||
- windows-x86:
|
||||
requires:
|
||||
- base
|
||||
- deploy:
|
||||
requires:
|
||||
- base
|
||||
- android-arm
|
||||
- browser-asmjs
|
||||
- linux-arm64
|
||||
- linux-armv5
|
||||
- linux-armv6
|
||||
- linux-armv7
|
||||
- linux-mipsel
|
||||
- linux-ppc64le
|
||||
- linux-x64
|
||||
- linux-x86
|
||||
- manylinux-x64
|
||||
- manylinux-x86
|
||||
- windows-x64
|
||||
- windows-x86
|
10
Makefile
10
Makefile
@ -50,7 +50,7 @@ browser-asmjs: browser-asmjs/Dockerfile.in common.docker common.debian
|
||||
sed -e '/common.docker/ r common.docker' -e '/common.debian/ r common.debian' $@/Dockerfile.in > $@/Dockerfile
|
||||
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
||||
cp -r test browser-asmjs/
|
||||
$(DOCKER) build -t $(ORG)/browser-asmjs \
|
||||
$(DOCKER) build -t $(ORG)/browser-asmjs:latest \
|
||||
--build-arg IMAGE=$(ORG)/browser-asmjs \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||
@ -73,7 +73,7 @@ manylinux-x64/Dockerfile: manylinux-x64/Dockerfile.in common.docker common.manyl
|
||||
|
||||
manylinux-x64: manylinux-x64/Dockerfile
|
||||
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
||||
$(DOCKER) build -t $(ORG)/manylinux-x64 \
|
||||
$(DOCKER) build -t $(ORG)/manylinux-x64:latest \
|
||||
--build-arg IMAGE=$(ORG)/manylinux-x64 \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||
@ -93,7 +93,7 @@ manylinux-x86/Dockerfile: manylinux-x86/Dockerfile.in common.docker common.manyl
|
||||
|
||||
manylinux-x86: manylinux-x86/Dockerfile
|
||||
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
||||
$(DOCKER) build -t $(ORG)/manylinux-x86 \
|
||||
$(DOCKER) build -t $(ORG)/manylinux-x86:latest \
|
||||
--build-arg IMAGE=$(ORG)/manylinux-x86 \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||
@ -112,7 +112,7 @@ Dockerfile: Dockerfile.in common.docker common.debian
|
||||
sed -e '/common.docker/ r common.docker' -e '/common.debian/ r common.debian' Dockerfile.in > Dockerfile
|
||||
|
||||
base: Dockerfile imagefiles/
|
||||
$(DOCKER) build -t $(ORG)/base \
|
||||
$(DOCKER) build -t $(ORG)/base:latest \
|
||||
--build-arg IMAGE=$(ORG)/base \
|
||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||
.
|
||||
@ -133,7 +133,7 @@ $(VERBOSE).SILENT: display_images
|
||||
#
|
||||
$(STANDARD_IMAGES): base
|
||||
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
||||
$(DOCKER) build -t $(ORG)/$@ \
|
||||
$(DOCKER) build -t $(ORG)/$@:latest \
|
||||
--build-arg IMAGE=$(ORG)/$@ \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||
|
33
circle.yml
33
circle.yml
@ -1,33 +0,0 @@
|
||||
machine:
|
||||
# XXX: btrfs circleCI fix, see: https://github.com/docker/docker/issues/9939 and https://github.com/Sabayon/docker-stage3-base-amd64/commit/8c1bf737113a278dd2f
|
||||
pre:
|
||||
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.0-circleci'
|
||||
- sudo chmod 0755 /usr/bin/docker
|
||||
services:
|
||||
- docker
|
||||
|
||||
dependencies:
|
||||
cache_directories:
|
||||
- "~/docker"
|
||||
|
||||
override:
|
||||
- docker info
|
||||
- curl -fsSL https://git.io/v2Ifs -o ~/bin/circleci-matrix
|
||||
- chmod +x ~/bin/circleci-matrix
|
||||
|
||||
test:
|
||||
override:
|
||||
- circleci-matrix:
|
||||
parallel: true
|
||||
environment:
|
||||
STEP: dependencies
|
||||
- circleci-matrix:
|
||||
parallel: true
|
||||
timeout: 3000
|
||||
environment:
|
||||
STEP: test
|
||||
- circleci-matrix:
|
||||
parallel: true
|
||||
environment:
|
||||
STEP: deployment
|
||||
|
Loading…
Reference in New Issue
Block a user