Skip to content

.travis.yml sample using conda recipy for Linux, OSX, and Windows

License

Notifications You must be signed in to change notification settings

kangwonlee/travis-yml-conda-posix-nt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A sample .travis.yml using conda on linux, osx and windows

Description

  • This file is intend to be a sample of .travis.yml file for the Travis-CI.

What is the CI ?

...CI is the practice of merging all developers' working copies to a shared mainline several times a day.

  • To my understanding, when integrating a new work, the code base integrity must be confirmed.

  • As CI may execute a number of tasks such as building, testing, and merging several times a day, certain level of automation is desirable.

  • For example, Jenkins, an open source project, can be employed to automate the CI/CD.

What is the Travis-CI.org?

  • Also from the Wikipedia:

Travis-CI is a hosted CI service used to build and test software project hosted at GitHub.

  • The company HQ is located in Berlin, Germany.

What is the .travis.yml file?

  • When a developer git pushs to a Travis-CI-enabled GitHub repository, Travis-CI would build and test the software.

  • Travis-CI would search for this .travis-ci.yml file at the root of the repository.

  • This .travis-ci.yml file would describe the procedures to build and test the software.

  • .yml means YAML format.

Separate shell script files

  • One possible way to simplify the .travis.yml file is to write several shell script files describing subsections of the procedure : before_install, install, and script

  • For example, to run a my_before_install.sh file, one may consider adding following lines to the .travis.yml file.

before_install:
  - . my_before_install.sh

Recommendation

  • Also consider using pip install --requirement <file> [ref]
  • This repo includes a simple (untested) python script converting conda recipe yaml files to pip requirement files
  • At first, please start small