This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
60 lines (53 loc) · 1.97 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
52
53
54
55
56
57
58
59
60
sudo: required
dist: trusty
language: node_js
node_js:
- 7.9
services:
- docker
branches:
only:
- master
- develop
env:
CXX: g++-4.8
DOCKER_COMPOSE_VERSION: 1.12.0
BOLDR__DB__URL: postgres://postgres:[email protected]:5432/boldr_test
BOLDR__REDIS__URL: redis://127.0.0.1:6379/0
NODE_ENV: test
git:
depth: 3
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- sudo /etc/init.d/postgresql stop
# Install the latest version of Docker
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get -qq update
- sudo apt-get install -qqy docker-ce
# Install Docker Compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
- docker-compose up --build -d
- docker-compose ps
install:
- yarn global add node-gyp
- yarn install
script:
- yarn test:ci
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
yarn: true
directories:
- node_modules
notifications:
slack:
secure: jgeaFqyqaCgO4CUpvQT7QhIYXfIkB9i/XO/Breu9bjb168pw2EsTL4q3v8pxfcervQ9DV6ShO64obAc6j02bOK00AYFTSVcM9Hlnz+HRMVu+CsIbEGGr5Sw6JkOVJQHVWP51iWK5puQVoRefNNcjkD8ad7uLeZxtaRTR1dTYSzZUyWj/g/oRM9IcZSaE1+3iyx/DmsuMP4e7SzYGyacm7WmZZ5WbPOfk5u1GNMvjhF7DVhZTWGXdNb0opYC2sz4bia/AL8B1cMxF09DfVZngUYlcWSfsEiVHYb7q7BUB4oYYvc4ScL1TidfekNWfXC1sWyMQOQRA+jy/WFAJo8VmiCG1Thx0e4EhcvpyvABaozINUgMbnmP/Bdt/Kb98mxad1UhiLb8wP7qAcME9JhucHQamOzrlipjAreb6yWQHmx/WOojvpiKJ+JkqCps7daNttX0XdnDWc5X1DK8iaawui2XNAXQEfY+RlR5H4WL9DeEQ81KoKKeWLb9pTJpqdlFZqBLzvXA886B0owiiACwW50p48Uxx9iuip1QPcwHwcoezqmGTl8NB2LYStz4AMAS59obopQ2oONFzZD/JPZ1ihosuvkkni4JipA+BssdXEEBH+lq4GdDY8mHNx+DYmYBiGdyWUHb5iH79kc9f0KINLabA83YgQ9TR3E6459iq/EA=