Skip to content
Snippets Groups Projects
Commit 342ba2dd authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

Travis CI

parent 77902f67
No related branches found
No related tags found
No related merge requests found
dist: trusty
languages: rust
rust: nightly
services: docker
sudo: required
matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
- env: TARGET=thumbv6m-none-eabi
- env: TARGET=thumbv7m-none-eabi
- env: TARGET=thumbv7em-none-eabi
- env: TARGET=thumbv7em-none-eabihf
script:
- cargo generate-lockfile
- sh ci/run-docker.sh $TARGET
branches:
only:
- auto
- try
notifications:
email:
on_success: never
webhooks: https://homu.herokuapp.com/travis
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
ca-certificates curl libcurl4-openssl-dev libssh2-1
ENV PATH=$PATH:/rust/bin
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
ca-certificates curl libcurl4-openssl-dev libssh2-1
ENV PATH=$PATH:/rust/bin
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
ca-certificates curl libcurl4-openssl-dev libssh2-1
ENV PATH=$PATH:/rust/bin
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
ca-certificates curl libcurl4-openssl-dev libssh2-1
ENV PATH=$PATH:/rust/bin
set -ex
run() {
echo $1
docker build -t rust ci/docker/$1
docker run \
-v `rustc --print sysroot`:/rust:ro \
-v `pwd`:/checkout:ro \
-e CARGO_TARGET_DIR=/tmp/target \
-w /checkout \
-it rust \
ci/run.sh $1
}
if [ -z "$1" ]; then
for d in `ls ci/docker/`; do
run $d
done
else
run $1
fi
#!/bin/bash
set -ex
case $1 in
thumbv*)
curl -sf "https://raw.githubusercontent.com/japaric/rust-everywhere/master/install.sh" | \
bash -s -- --at /usr/bin --from japaric/xargo --tag v0.1.9
xargo build --target $1
;;
*)
cargo test --target $1
;;
esac
{
"arch": "arm",
"data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64",
"features": "+strict-align",
"llvm-target": "thumbv6m-none-eabi",
"os": "none",
"target-endian": "little",
"target-pointer-width": "32"
}
{
"arch": "arm",
"data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64",
"llvm-target": "thumbv7em-none-eabi",
"os": "none",
"target-endian": "little",
"target-pointer-width": "32"
}
{
"arch": "arm",
"data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64",
"features": "+vfp4",
"llvm-target": "thumbv7em-none-eabihf",
"os": "none",
"target-endian": "little",
"target-pointer-width": "32"
}
{
"arch": "arm",
"data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64",
"llvm-target": "thumbv7m-none-eabi",
"os": "none",
"target-endian": "little",
"target-pointer-width": "32"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment