Skip to content

Commit

Permalink
ci: Transition to Travis CI container infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Feb 22, 2016
1 parent 30cc850 commit cd18c4a
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .travis.yml
@@ -1,24 +1,25 @@
language: node_js
sudo: false
node_js:
- '0.10'
services:
- mongodb
- '4.1'
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
- mongodb-org-shell
env:
- CI_SERVER=1
addons:
code_climate:
repo_token: 9c90177b42d39905ca635b1f6226580dab5799f87f172b66bab4e8df77b67a13
before_install:
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
- echo 'deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.0 multiverse'
| sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
- echo 'deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.1 multiverse'
| sudo tee /etc/apt/sources.list.d/mongodb-org-3.1.list
- sudo apt-get update
- sudo apt-get install -y mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-tools
before_script:
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
- mongo --version
- mkdir data/db
- 'mongo --dbpath=data/db &'
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
- mongo --eval 'db.hostInfo()'
- gulp build
script:
- gulp ci
Expand Down

0 comments on commit cd18c4a

Please sign in to comment.