-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
29 lines (28 loc) · 846 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# This is for Travis CI.
# - Every github commit triggers Travis CI to build a Docker image
# - For more information please visit:
# https://travis-ci.org
#
sudo: required
language: node_js
node_js:
- "5.0"
before_install:
- curl https://install.meteor.com/ | sh
services:
- docker
env:
#- LAIKA_OPTIONS="-t 5000"
after_success:
- meteor build ./
- ls ./
- docker --version
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
#- docker pull node:0.10
- docker build -t sapporo/sapporo:0.$TRAVIS_BUILD_NUMBER .
- docker build -t sapporo/sapporo:latest .
- docker images
- docker run sapporo/sapporo:latest node /sapporo/bundle/main.js #If it's valid, it should throw the error of missing MongoDB URL
- docker push sapporo/sapporo:0.$TRAVIS_BUILD_NUMBER
- docker push sapporo/sapporo:latest