summaryrefslogtreecommitdiff
path: root/ci
AgeCommit message (Collapse)Author
2017-12-08Support building and testing multiple targets at onceBryant Mairs
Specifying multiple targets can be done by setting the environment variable to a semi-colon delimited list of targets.
2017-07-03Add iOS as a Tier 3 platformBryant Mairs
2017-06-06Synchronize CI with upstream trust configurationBryant Mairs
2017-04-16ci: Allow skipping tests when running under CIKamal Marhubi
This adds `--cfg=travis` to builds under CI, allowing tests to be conditionally ignored by marking them with #[cfg_attr(travis, ignore)] refs #568
2017-04-09Removed commented `cargo run` targets in CIZac Berkowitz
2017-04-09Removed 'cargo run' directives from ci script.Zac Berkowitz
2017-04-09Fixed ci/script.sh to run tests when desired.Zac Berkowitz
2017-04-09Added ci templates from `trust` v0.1.1Zac Berkowitz
2017-04-09Removed old ci infrastructure.Zac Berkowitz
2016-08-10ci: fix docker container checkPaul Osborne
Newer version of docker no longer have the /.dockerinit file present when the container is executing, so that is no longer an option. When executing in a container, we do know that we will be executing as pid 1 -- this is probably not ever the case on the host system. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-07-10ci: push docs to gh-pages and code cov to coverallsPaul Osborne
This moves things around a fair bit in the .travis.yml to be more logically ordered and adds support for publishing docs (on master) to gh-pages. Code coverage is also calculated and published to coveralls.io. Travis is able to write to gh-pages on the github repository via the GH_TOKEN environment variable stored in the travis settings (marked as private). This token is generated from the github user 'rust-nix-bot' in order to avoid given access to other repos associated with an actual user's account (this practice is recommended by Github). Other changes worth noting: - We now test fewer intermediate versions of rust - The existing logic to publish to Carl's S3 bucket have been removed. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-21testing: specify a few extra environment variablesPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-21testing: use posborne/rust-cross:x86 for x86_64/i686Paul Osborne
Previously, std for x86_64 and i686 was included in the base image. To reduce size, those contents are now in the x86 image instead. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-17travis: add back testing on all rust versions (for linux)Paul Osborne
We are using containers for a majority of builds again, so perform those builds on more platforms (as travis seems to handle this much better). For OSX, we now testing i686/x86_64 on 1.1.0 as well for added coverage. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-16testing: remove refs to test_nix in run-all.shPaul Osborne
Somewhere in the last set of changes, a few references to `test_nix` were not removed. Since that function doesn't exist, the tests would never be run on those targets. This script is only used when testing locally right now. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-14testing: ensure run.sh is executing in docker containerPaul Osborne
On the host, some undesired things could end up happening if this is executed, so we now exit and log if that is attempted. In addition, we now backup the previous cargo config if present. This will never be the case in the current build setup, but that could change if we decide to do builds in a data volume in the future. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-14testing: explicitly check TRAVIS_OS_NAME is osxPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-14testing: update documentation related to testingPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-14testing: use default linker for appropriate platformsPaul Osborne
For platforms where the host ${CC} is appropriate, use the default implicitly rather than matching it explictly. This will allow for the llvm linker to be used if/when that happens. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-14testing: move echo statement within docker run scriptPaul Osborne
Based on code review feedback. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: docker tests now work on travisPaul Osborne
All of the platforms tested currently fail in some way currently, but the infrastructure itself appears to be working. As we have moved to the legacy infrastructure (required in order to use docker), the tests do run slower now. To compensate for that, i686 builds are only done on stable and we do not test every version between the current stable and the oldest version we support. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: first shot at testing with travis for arm, mips, android, ...Paul Osborne
This is based on libc and the new docker-based testing infrastructure via posborne/rust-cross. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: move to new posborne/rust-cross imagesPaul Osborne
The rust-cross image is no longer all-in-one but broken out by architecture class (or platform in the case of android). Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: fix gcc/linker paths for several targetsPaul Osborne
There are also changes in the upstream docker images to support more targets (android on ARM, etc).
2016-03-13testing: export CC based on .cargo/config contentsPaul Osborne
We already need to test cargo about gcc locations so it can perfom linking -- we just parse this information out to tell rust where gcc is for complation (nix-test compiles some C code for testing). Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: disable thread parallelization in docker testingPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: fix test exeuction paths with move to docker containerPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: disable some targets and continue running on failurePaul Osborne
Later on, it will probably make sense to stop on failure -- given that most targets currently fail, however, this works a bit better for the time being. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: remove `set -x` from ci/run.shPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: allow the docker image to be overridenPaul Osborne
This is handy for trying out changes to the docker image for testing things out. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: switch to posborne/rust-crossPaul Osborne
There is now a published docker image (if a bit large) making it possible for others to start using the new test ingfrastructure. There seems to be no shortage of compile problems right now. Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: add documentation covering the basicsPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: configure linker via .cargo/configPaul Osborne
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-13testing: add ci scripts to aid testing on more architectures/versionsPaul Osborne
These scripts represent a rough first cust at adding support for locally building nix and its tests for a large number of rust versions and architectures. Currently, this mostly helps with testing that nix compiles for various architectures (to the point that there are a mound of problems that need to be addressed). Once these are sorted, the code for actually running the tests for various architectures will be approached (this will require qemu and will still not target all architectures). Signed-off-by: Paul Osborne <osbpau@gmail.com>