Skip to content

Commit

Permalink
feat(docker): Basic CI for Docker
Browse files Browse the repository at this point in the history
see #49
  • Loading branch information
hypery2k committed Feb 6, 2018
1 parent 442e69b commit c845838
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
- NODE_VERSION="7" NPM_VERSION="3" DISPLAY=:99
- NODE_VERSION="7" NPM_VERSION="4" DISPLAY=:99

services:
- docker

addons:
# From some tests it seems you can only have one firefox addon.
# Adding two results in the last one defined being the one installed.
Expand Down Expand Up @@ -44,6 +47,7 @@ script:
- npm install . -g
- npm run coverage
- ./runTests.sh
- ./docker-build-images.sh
before_install:
# Prepare node and npm
- nvm install $NODE_VERSION && nvm use $NODE_VERSION
Expand Down
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ENV NVM_DIR /home/galen
ENV NODE_VERSION 6.11.4
ENV GALEN_VERSION 2.3.5
ENV TEST_HOME /var/jenkins_home
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH

#================================================
# Customize sources for apt-get
Expand Down Expand Up @@ -109,14 +111,10 @@ USER galen
#===================================================
# Install nvm with node and npm
#===================================================
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
&& npm install -g galenframework-cli@$GALEN_VERSION
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash && \
. $NVM_DIR/nvm.sh && \
nvm install $NODE_VERSION && nvm alias default $NODE_VERSION && nvm use default && \
npm install -g galenframework-cli@$GALEN_VERSION && \
export PATH=$PATH

VOLUME /var/test_scripts

ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@

[Galen](http://galenframework.com) allows automated testing of look and feel for your responsive websites.

[![Build Status](https://travis-ci.org/hypery2k/galenframework-cli.svg?branch=master)](https://travis-ci.org/hypery2k/galenframework-cli) [![Build status](https://ci.appveyor.com/api/projects/status/fbwy88pc9ia6429w/branch/master?svg=true)](https://ci.appveyor.com/project/hypery2k/galenframework-cli/branch/master)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)
[![Code Climate](https://codeclimate.com/github/hypery2k/galenframework-cli/badges/gpa.svg)](https://codeclimate.com/github/hypery2k/galenframework-cli)
[![Build Status](https://travis-ci.org/hypery2k/galenframework-cli.svg?branch=master)](https://travis-ci.org/hypery2k/galenframework-cli) [![Build status](https://ci.appveyor.com/api/projects/status/fbwy88pc9ia6429w/branch/master?svg=true)](https://ci.appveyor.com/project/hypery2k/galenframework-cli/branch/master) [![License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) [![Code Climate](https://codeclimate.com/github/hypery2k/galenframework-cli/badges/gpa.svg)](https://codeclimate.com/github/hypery2k/galenframework-cli)

The [core](core/) module is just the node wrapper for [Galen](http://galenframework.com) and can be used within CI environments

[![Known Vulnerabilities](https://snyk.io/test/github/hypery2k/galenframework-cli/badge.svg?targetFile=core%2Fpackage.json)](https://snyk.io/test/github/hypery2k/galenframework-cli?targetFile=core%2Fpackage.json)

The [cli](cli/) module is a command line module for [Galen](http://galenframework.com). This includes the core above and webdriver downloads for different browsers. You can also use the [docker image](https://hub.docker.com/r/galenframework/cli/) for easier setup.

[![Known Vulnerabilities](https://snyk.io/test/github/hypery2k/galenframework-cli/badge.svg?targetFile=cli%2Fpackage.json)](https://snyk.io/test/github/hypery2k/galenframework-cli?targetFile=cli%2Fpackage.json) [![Docker Build Status](https://img.shields.io/docker/build/galenframework/cli.svg)]()
[![Known Vulnerabilities](https://snyk.io/test/github/hypery2k/galenframework-cli/badge.svg?targetFile=cli%2Fpackage.json)](https://snyk.io/test/github/hypery2k/galenframework-cli?targetFile=cli%2Fpackage.json) [![Docker Build Status](https://img.shields.io/docker/build/galenframework/cli.svg)](https://hub.docker.com/r/galenframework/cli/)

[![Join the chat at https://gitter.im/hypery2k/galenframework-cli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hypery2k/galenframework-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=15642797)](https://www.bountysource.com/trackers/15642797-hypery2k-galenframework-cli?utm_source=15642797&utm_medium=shield&utm_campaign=TRACKER_BADGE) [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=mreinhardt&url=https://github.com/hypery2k/galenframework-cli&title=badges&language=&tags=github&category=software)

Expand All @@ -35,5 +33,5 @@ The [cli](cli/) module is a command line module for [Galen](http://galenframewor


```
docker run -v ./test/galen/specs:/var/test_scripts -it galen test ... galenframework/runtime
docker run -v $(pwd)/galenframework-cli/core/test/:/var/test_scripts galenframework/cli:develop galen test /var/test_scripts/...
```

0 comments on commit c845838

Please sign in to comment.