-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (46 loc) · 1.01 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: required
dist: trusty
branches:
only:
- master
- develop
- "/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/"
git:
depth: 2
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
language: node_js
node_js:
- "4.5.0"
env:
- CXX=g++-4.8
cache:
directories:
- "~/.npm"
- "~/.meteor"
- "node_modules"
- "~/.meteor/local/build"
- "~/.meteor/local/bundler-cache"
- "~/.meteor/local/isopacks"
- "~/.meteor/local/plugin-cache"
- "~/nvm/versions/node/v4.5.0/bin"
- "~/nvm/versions/node/v4.5.0/lib/node_modules"
before_install:
- rm -rf $HOME/.meteor
- curl https://install.meteor.com | /bin/sh
install:
- export PATH="$HOME/.meteor:$PATH"
before_script:
- meteor npm install
- mkdir $HOME/app
script:
- free -m
- NODE_OPTIONS=' --max_old_space_size=4096 ' meteor build --architecture=os.linux.x86_64 --directory $HOME/app --server=http://localhost:3000
- cd $HOME/app/bundle/programs/server
- meteor npm install --production
services:
- mongodb