Created
January 12, 2017 22:50
-
-
Save mcginty/9b3941b7b79e66fc76822b5b3b795804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is a template, and might need editing before it works on your project. | |
# Unofficial language image. Look for the different tagged releases at: | |
# https://hub.docker.com/r/scorpil/rust/tags/ | |
image: "liuchong/rustup:nightly" | |
# Optional: Pick zero or more services to be used on all builds. | |
# Only needed when using a docker container to run your tests in. | |
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service | |
#services: | |
# - mysql:latest | |
# - redis:latest | |
# - postgres:latest | |
# Optional: Install a C compiler, cmake and git into the container. | |
# You will often need this when you (or any of your dependencies) depends on C code. | |
before_script: | |
- apt-get update -yqq | |
- apt-get install -yqq --no-install-recommends build-essential gcc-mingw-w64-x86-64 gcc-arm-none-eabi gcc-multilib musl musl-dev musl-tools | |
- rustup toolchain remove nightly | |
- rustup toolchain install nightly | |
- rustup update | |
- rustup target add arm-unknown-linux-gnueabihf | |
- rustup target add arm-unknown-linux-musleabihf | |
- rustup target add i686-unknown-linux-gnu | |
- rustup target add x86_64-unknown-linux-musl | |
#- rustup target add x86_64-pc-windows-msvc | |
#- rustup target add x86_64-pc-windows-gnu | |
# Use cargo to test the project | |
test:cargo: | |
script: | |
- lscpu | |
- rustup -V | |
- rustc --version && cargo --version | |
- cargo test --jobs 1 | |
- cargo bench | |
build:linux: | |
script: | |
- cargo build --release | |
artifacts: | |
paths: | |
- target/ | |
build:linux-musl: | |
script: | |
- cargo build --release --target=x86_64-unknown-linux-musl | |
artifacts: | |
paths: | |
- target/ | |
allow_failure: true | |
build:linux-i686: | |
script: | |
- cargo build --release --target=i686-unknown-linux-gnu | |
artifacts: | |
paths: | |
- target/ | |
allow_failure: true | |
#build:windows-msvc: | |
# script: | |
# - cargo build --release --target=x86_64-pc-windows-msvc | |
# artifacts: | |
# paths: | |
# - target/ | |
# allow_failure: true | |
# | |
#build:windows-gnu: | |
# script: | |
# - cargo build --release --target=x86_64-pc-windows-gnu | |
# artifacts: | |
# paths: | |
# - target/ | |
# allow_failure: true | |
#build:arm-gnu: | |
# script: | |
# - cargo build --release --target=arm-unknown-linux-gnueabihf | |
# artifacts: | |
# paths: | |
# - target/ | |
# allow_failure: true | |
#build:arm-musl: | |
# script: | |
# - cargo build --release --target=arm-unknown-linux-musleabihf | |
# artifacts: | |
# paths: | |
# - target/ | |
# allow_failure: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment