forked from ethereumclassic/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (30 loc) · 937 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
language: node_js
sudo: required
matrix:
include:
# This builder checks explorer build
- os: linux
dist: xenial
node_js: '8'
services:
- docker
before_install:
- docker pull trufflesuite/ganache-cli
- docker run -d -p 8546:8546 -p 27017:27017 trufflesuite/ganache-cli -p 8546
- varA=`docker ps --no-trunc -q | cut -c 1-12`
- docker pull mongo
- docker run -d --network="container:$varA" mongo
- docker build -t ethereumclassic/explorer .
- docker run -d --network="container:$varA" ethereumclassic/explorer app.js
script:
- npm run test
# This builder only tests code linters
- os: linux
dist: xenial
node_js: '8'
env: lint
script:
- npm run lint:check
# Temporary allow failures for eslint until the code is done.
allow_failures:
- env: lint