Sign inSign up

azureiotpcs/travis-cli

By azureiotpcs

Updated about 9 years ago

Container with Travis CI CLI pre-installed

Image
2

154

azureiotpcs/travis-cli repository overview

Use this container to run Travis CLI in your project, without having to setup Ruby and Travis gem. The container is configured with the right version of Ruby and the dependencies needed by Travis CLI gem, like pry and git.

When running the container, you should mount your current project root, and the location of the .travis folder, used to store the authentication token.

For more information about Travis CI CLI visit https://github.com/travis-ci/travis.rb

How to use the container in Windows

Create a travis.cmd file in your project, e.g. under a scripts folder:

@ECHO off
setlocal enableextensions enabledelayedexpansion

SET APP_HOME=%~dp0
:: assuming the script is in a "scripts" folder, strlen("\scripts\") => 9
SET APP_HOME=%APP_HOME:~0,-9%
cd %APP_HOME%
mkdir .travis 2>NUL
docker run -it ^
    -v %APP_HOME%\.travis:/root/.travis ^
    -v %APP_HOME%:/opt/code ^
    azureiotpcs/travis-cli:1.8.8 /root/bin/travis.sh %*
endlocal

How to use the container in MacOS/Linux

Create a travis file in your project, e.g. under a scripts folder, and make it executable:

#!/usr/bin/env bash

set -e
APP_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )/"
cd $APP_HOME

mkdir -p .travis

docker run -it \
    -v $APP_HOME/.travis:/root/.travis \
    -v $APP_HOME:/opt/code \
    azureiotpcs/travis-cli:1.8.8 /root/bin/travis.sh $*

set +e

Tag summary

Content type

Image

Digest

Size

249.6 MB

Last updated

about 9 years ago

docker pull azureiotpcs/travis-cli:1.8.8