Git Product home page Git Product logo

example-travis-conda's Introduction

About

Travis CI is a Continuous Integration service that will run tests for your project anytime someone makes a change or opens a pull request. However, every time a build starts on Travis, all the dependencies are installed from scratch in a clean environment. Travis does include Python, but if you try and install for example Numpy, Scipy, and Matplotlib from source, the installation could take a while (over 20 minutes) for each build.

This repository contains a simple .travis.yml file to get you started with testing your Python project on Travis CI using conda to speed up the installation of dependencies. Setting up a build with for example Python, Numpy, Scipy, Matplotlib, and Astropy takes only a minute! This is possible because conda installs pre-compiled binary packages.

Getting started

To get started, copy over the .travis.yml file here to your repository, and add/remove dependencies or builds in the matrix if needed. Then go to the Travis CI website, sign in with your GitHub account, then go to Accounts and turn on Travis for the repository you want to test. Next time you push a change or open a pull request on your repository, Travis will run the tests!

Note that in the example .travis.yml file, the command to run the tests is currently set to py.test (in the script section) but you can change this to anything you like.

More

You can find out more information about using conda on Travis in this official conda blog post blog post - their example .travis.yml file is a little different, but both will do the job. The one in this repository is a little simpler overall and includes more inline comments.

Build status

Build Status

example-travis-conda's People

Contributors

astrofrog avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.