2016-03-02 16:21:14 +01:00
|
|
|
machine:
|
2016-05-30 22:58:43 +02:00
|
|
|
# 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
|
2016-03-02 16:21:14 +01:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
override:
|
|
|
|
- docker info
|
|
|
|
- docker pull thewtex/cross-compiler-base
|
2016-03-07 03:38:38 +01:00
|
|
|
- docker pull thewtex/cross-compiler-android-arm
|
2016-03-13 03:26:41 +01:00
|
|
|
- docker pull thewtex/cross-compiler-browser-asmjs
|
2016-07-15 22:20:46 +02:00
|
|
|
- docker pull thewtex/cross-compiler-linux-arm64
|
2016-06-13 02:10:57 +02:00
|
|
|
- docker pull thewtex/cross-compiler-linux-armv5
|
2016-03-14 22:54:40 +01:00
|
|
|
- docker pull thewtex/cross-compiler-linux-armv6
|
2016-03-18 23:20:04 +01:00
|
|
|
- docker pull thewtex/cross-compiler-linux-armv7
|
2016-03-20 23:24:32 +01:00
|
|
|
- docker pull thewtex/cross-compiler-linux-ppc64le
|
2016-03-28 18:47:01 +02:00
|
|
|
- docker pull thewtex/cross-compiler-linux-x64
|
2016-04-06 22:48:12 +02:00
|
|
|
- docker pull thewtex/cross-compiler-linux-x86
|
2016-04-13 03:32:13 +02:00
|
|
|
- docker pull thewtex/cross-compiler-windows-x64
|
2016-04-17 03:37:33 +02:00
|
|
|
- docker pull thewtex/cross-compiler-windows-x86
|
2016-03-02 16:21:14 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
override:
|
|
|
|
- make base
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-base > ./dockcross-base && chmod +x ./dockcross-base
|
|
|
|
- ./dockcross-base python test/run.py --emulator 'sh -c'
|
2016-03-07 03:38:38 +01:00
|
|
|
- make android-arm
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-android-arm > ./dockcross-android-arm && chmod +x ./dockcross-android-arm
|
|
|
|
- ./dockcross-android-arm python test/run.py
|
2016-03-13 03:26:41 +01:00
|
|
|
- make browser-asmjs
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-browser-asmjs > ./dockcross-browser-asmjs && chmod +x ./dockcross-browser-asmjs
|
|
|
|
- ./dockcross-browser-asmjs python test/run.py --emulator /usr/bin/node --exe-suffix ".js"
|
2016-07-15 22:20:46 +02:00
|
|
|
- make linux-arm64
|
|
|
|
- docker run --rm thewtex/cross-compiler-linux-arm64 > ./dockcross-linux-arm64 && chmod +x ./dockcross-linux-arm64
|
|
|
|
- ./dockcross-linux-arm64 python test/run.py --emulator /usr/bin/qemu-arm
|
2016-06-13 02:10:57 +02:00
|
|
|
- make linux-armv5
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-linux-armv5 > ./dockcross-linux-armv5 && chmod +x ./dockcross-linux-armv5
|
|
|
|
- ./dockcross-linux-armv5 python test/run.py --emulator /usr/bin/qemu-arm
|
2016-03-14 22:54:40 +01:00
|
|
|
- make linux-armv6
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-linux-armv6 > ./dockcross-linux-armv6 && chmod +x ./dockcross-linux-armv6
|
|
|
|
- ./dockcross-linux-armv6 python test/run.py --emulator /usr/bin/qemu-arm
|
2016-03-18 23:21:43 +01:00
|
|
|
- make linux-armv7
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-linux-armv7 > ./dockcross-linux-armv7 && chmod +x ./dockcross-linux-armv7
|
|
|
|
- ./dockcross-linux-armv7 python test/run.py --emulator /usr/bin/qemu-arm
|
|
|
|
- ./dockcross-linux-armv7 && chmod +x ./dockcross-linux-armv7 && ./dockcross-linux-armv7 bash -c '$CC test/C/hello.c -o hello_arm'
|
2016-03-20 23:24:32 +01:00
|
|
|
- make linux-ppc64le
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-linux-ppc64le > ./dockcross-linux-ppc64le && chmod +x ./dockcross-linux-ppc64le
|
|
|
|
- ./dockcross-linux-ppc64le python test/run.py --emulator /usr/bin/qemu-ppc64le --languages C
|
2016-03-28 18:47:01 +02:00
|
|
|
- make linux-x64
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-linux-x64 > ./dockcross-linux-x64 && chmod +x ./dockcross-linux-x64
|
|
|
|
- ./dockcross-linux-x64 python test/run.py
|
2016-04-06 22:48:12 +02:00
|
|
|
- make linux-x86
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-linux-x86 > ./dockcross-linux-x86 && chmod +x ./dockcross-linux-x86
|
|
|
|
- ./dockcross-linux-x86 python test/run.py
|
2016-04-13 03:32:13 +02:00
|
|
|
- make windows-x64:
|
|
|
|
timeout: 3000
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-windows-x64 > ./dockcross-windows-x64 && chmod +x ./dockcross-windows-x64
|
|
|
|
- ./dockcross-windows-x64 python test/run.py --emulator /usr/bin/wine --exe-suffix ".exe"
|
2016-04-17 03:37:33 +02:00
|
|
|
- make windows-x86:
|
|
|
|
timeout: 3000
|
2016-07-05 04:53:17 +02:00
|
|
|
- docker run --rm thewtex/cross-compiler-windows-x86 > ./dockcross-windows-x86 && chmod +x ./dockcross-windows-x86
|
|
|
|
- ./dockcross-windows-x86 python test/run.py --emulator /usr/bin/wine --exe-suffix ".exe"
|
2016-03-02 18:24:00 +01:00
|
|
|
|
|
|
|
deployment:
|
|
|
|
hub:
|
|
|
|
branch: master
|
|
|
|
commands:
|
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- docker push thewtex/cross-compiler-base
|
2016-03-07 03:38:38 +01:00
|
|
|
- docker push thewtex/cross-compiler-android-arm
|
2016-03-14 22:54:40 +01:00
|
|
|
- docker push thewtex/cross-compiler-browser-asmjs
|
2016-07-15 22:20:46 +02:00
|
|
|
- docker push thewtex/cross-compiler-linux-arm64
|
2016-06-13 02:10:57 +02:00
|
|
|
- docker push thewtex/cross-compiler-linux-armv5
|
2016-03-14 22:54:40 +01:00
|
|
|
- docker push thewtex/cross-compiler-linux-armv6
|
2016-03-18 23:21:43 +01:00
|
|
|
- docker push thewtex/cross-compiler-linux-armv7
|
2016-03-20 23:24:32 +01:00
|
|
|
- docker push thewtex/cross-compiler-linux-ppc64le
|
2016-03-28 18:47:01 +02:00
|
|
|
- docker push thewtex/cross-compiler-linux-x64
|
2016-04-06 22:48:12 +02:00
|
|
|
- docker push thewtex/cross-compiler-linux-x86
|
2016-04-13 03:32:13 +02:00
|
|
|
- docker push thewtex/cross-compiler-windows-x64
|
2016-04-17 03:37:33 +02:00
|
|
|
- docker push thewtex/cross-compiler-windows-x86
|