Skip to content

Commit

Permalink
Add up to date templates for circle and travis ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelmont committed Mar 11, 2017
1 parent 6140009 commit 783a6dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/circle-ci/circle-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
build:
docker:
- image: node:7.6.0
- image: openjdk:8
working_directory: ~/code-craftsmanship-organization/continuous-integration-with-jenkins-travis-and-circleci
steps:
- checkout
Expand All @@ -35,6 +36,9 @@ jobs:
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | apt-key add -
apt-get -y update -qq
apt-get -y install rethinkdb
- run:
name: Install Latest Chrome
command: bash scripts/get-latest-chrome.sh
- run:
name: Install Dependencies
command: npm install
Expand Down
16 changes: 14 additions & 2 deletions docs/travis-ci/travis-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,30 @@
## Sample Travis yml script

```yml
dist: trusty
sudo: required
language: node_js
node_js:
- 6
sudo: required
env:
- NODE_ENV=test
addons:
rethinkdb: '2.3.5'
sources:
- google-chrome
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
- google-chrome-stable
before_script:
- npm run start:rethinkdb
- export CHROME_BIN=chromium-browser
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
after_success:
- npm run coveralls
- npm run build && npm run e2e
```

## Integrate Travis CI with Github
Expand Down

0 comments on commit 783a6dc

Please sign in to comment.