Skip to content

Create codeship-ci.md #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/codeship-ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Codeship CI Configuration

## Overview
Pick "I want to create my own custom commands" on the Project Settings, Test tab.

## Setup Commands
```bash
#!/bin/bash
# Install a custom version of PhantomJS, http://phantomjs.org/
export PHANTOMJS_HOST="https://s3.amazonaws.com/codeship-packages"
export PHANTOMJS_VERSION=2.1.1
\curl -sSL https://github.com/raw/codeship/scripts/master/packages/phantomjs.sh | bash -s
rvm use 2.3.1
gem update --system
gem install bundler
bundle config build.nokogiri --use-system-libraries
bundle config build.json --use-system-libraries
bundle install
chromedriver-update
nvm install stable && nvm alias default stable
npm install npm@latest -g
npm install --global yarn
yarn install
export RAILS_ENV=test
bundle exec rake db:schema:load
```

## Test Pipeline

```bash
COVERALLS_REPO_TOKEN=YynC bundle exec rake
```