-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
51 lines (38 loc) · 1.03 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
48
49
50
51
sudo: required
language: node_js
services:
- docker
- mongodb
addons:
chrome: stable
install:
- wget -N http://chromedriver.storage.googleapis.com/2.30/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
branches:
only:
- master
- /^greenkeeper/.*$/
before_install: npm install --global greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
script:
- yarn install
- yarn test
- mongo --eval "db.getSiblingDB('admin').shutdownServer()"
# - yarn e2e -e ci --tag smoke
after_script: greenkeeper-lockfile-upload
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./.deploy/build.sh && ./.deploy/deploy.sh; fi
cache:
directories:
- node_modules
- ~/.mongodb-binaries
yarn: true
notifications:
email: false
notifications:
slack:
secure: "$SLACK_TOKEN"