Skip to content

Commit

Permalink
ci: move shared scripts to src/ci/docker/scripts/
Browse files Browse the repository at this point in the history
  • Loading branch information
malbarbo committed May 18, 2017
1 parent 307d8e5 commit d15c950
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions src/ci/docker/arm-android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN apt-get update && \
xz-utils

# dumb-init
COPY dumb-init.sh /scripts/
COPY scripts/dumb-init.sh /scripts/
RUN sh /scripts/dumb-init.sh

# ndk
COPY android-ndk.sh /scripts/
COPY scripts/android-ndk.sh /scripts/
RUN . /scripts/android-ndk.sh && \
download_and_make_toolchain android-ndk-r13b-linux-x86_64.zip arm 9

Expand All @@ -35,7 +35,7 @@ RUN dpkg --add-architecture i386 && \
openjdk-9-jre-headless \
tzdata

COPY android-sdk.sh /scripts/
COPY scripts/android-sdk.sh /scripts/
RUN . /scripts/android-sdk.sh && \
download_and_create_avd tools_r25.2.5-linux.zip armeabi-v7a 18

Expand All @@ -52,9 +52,9 @@ ENV RUST_CONFIGURE_ARGS \
ENV SCRIPT python2.7 ../x.py test --target $TARGETS

# sccache
COPY sccache.sh /scripts/
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

# init
COPY android-start-emulator.sh /scripts/
COPY scripts/android-start-emulator.sh /scripts/
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/scripts/android-start-emulator.sh"]
6 changes: 3 additions & 3 deletions src/ci/docker/disabled/dist-aarch64-android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN apt-get update && \
xz-utils

# dumb-init
COPY dumb-init.sh /scripts/
COPY scripts/dumb-init.sh /scripts/
RUN sh /scripts/dumb-init.sh

# ndk
COPY android-ndk.sh /scripts/
COPY scripts/android-ndk.sh /scripts/
RUN . /scripts/android-ndk.sh && \
download_and_make_toolchain android-ndk-r13b-linux-x86_64.zip arm64 21

Expand All @@ -43,7 +43,7 @@ ENV RUST_CONFIGURE_ARGS \
ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS

# sccache
COPY sccache.sh /scripts/
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

# init
Expand Down
6 changes: 3 additions & 3 deletions src/ci/docker/disabled/dist-armv7-android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN apt-get update && \
xz-utils

# dumb-init
COPY dumb-init.sh /scripts/
COPY scripts/dumb-init.sh /scripts/
RUN sh /scripts/dumb-init.sh

# ndk
COPY android-ndk.sh /scripts/
COPY scripts/android-ndk.sh /scripts/
RUN . /scripts/android-ndk.sh && \
download_ndk android-ndk-r13b-linux-x86_64.zip && \
make_standalone_toolchain arm 9 && \
Expand Down Expand Up @@ -61,7 +61,7 @@ ENV SCRIPT \
python2.7 ../x.py dist --host $HOSTS --target $HOSTS)

# sccache
COPY sccache.sh /scripts/
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

# init
Expand Down
6 changes: 3 additions & 3 deletions src/ci/docker/disabled/dist-i686-android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN apt-get update && \
xz-utils

# dumb-init
COPY dumb-init.sh /scripts/
COPY scripts/dumb-init.sh /scripts/
RUN sh /scripts/dumb-init.sh

# ndk
COPY android-ndk.sh /scripts/
COPY scripts/android-ndk.sh /scripts/
RUN . /scripts/android-ndk.sh && \
download_ndk android-ndk-r13b-linux-x86_64.zip && \
make_standalone_toolchain x86 9 && \
Expand Down Expand Up @@ -61,7 +61,7 @@ ENV SCRIPT \
python2.7 ../x.py dist --host $HOSTS --target $HOSTS)

# sccache
COPY sccache.sh /scripts/
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

# init
Expand Down
6 changes: 3 additions & 3 deletions src/ci/docker/disabled/dist-x86_64-android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN apt-get update && \
xz-utils

# dumb-init
COPY dumb-init.sh /scripts/
COPY scripts/dumb-init.sh /scripts/
RUN sh /scripts/dumb-init.sh

# ndk
COPY android-ndk.sh /scripts/
COPY scripts/android-ndk.sh /scripts/
RUN . /scripts/android-ndk.sh && \
download_and_make_toolchain android-ndk-r13b-linux-x86_64.zip x86_64 21

Expand All @@ -43,7 +43,7 @@ ENV RUST_CONFIGURE_ARGS \
ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS

# sccache
COPY sccache.sh /scripts/
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

# init
Expand Down
6 changes: 3 additions & 3 deletions src/ci/docker/dist-android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN apt-get update && \
xz-utils

# dumb-init
COPY dumb-init.sh /scripts/
COPY scripts/dumb-init.sh /scripts/
RUN sh /scripts/dumb-init.sh

# ndk
COPY android-ndk.sh /scripts/
COPY scripts/android-ndk.sh /scripts/
RUN . /scripts/android-ndk.sh && \
download_ndk android-ndk-r13b-linux-x86_64.zip && \
make_standalone_toolchain arm 9 && \
Expand Down Expand Up @@ -49,7 +49,7 @@ ENV RUST_CONFIGURE_ARGS \
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS

# cache
COPY sccache.sh /scripts/
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

# init
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d15c950

Please sign in to comment.