forked from LearningLocker/learninglocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (33 loc) · 920 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
30
31
32
33
34
35
36
37
38
39
40
language: node_js
node_js: "6"
sudo: false
env:
matrix:
- YARN_CMD=lint
- YARN_CMD=test
- YARN_CMD=ci-test-integrations
global:
- MONGODB=3.2.13
- APP_SECRET=44E52D2227F93179525E252EC3AB5
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- cp .env.example .env
- cp .env.example .env.test
- yarn
services:
- redis-server
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- touch .env
before_script:
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork
cache:
yarn: true
script:
- yarn $YARN_CMD
after_script:
- pkill mongod