-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
51 lines (47 loc) · 1.28 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
os: linux
dist: xenial
language: node_js
node_js: lts/dubnium
services:
- docker
- postgresql
cache:
yarn: true
directories:
- node_modules
env:
- DOCKER_COMPOSE_VERSION=1.4.2
jobs:
include:
- stage: test
before_install:
- cd templates/smart-contracts
install:
- yarn
script:
- yarn test
- yarn coverage
- yarn lint
- npx codechecks
-
before_install:
- docker pull trufflesuite/ganache-cli:v6.9.1
- mkdir -p ./db_ganache
- docker run -d -p 8545:8545 --name my_ganache -v "$PWD/db_ganache":/app/db_ganache trufflesuite/ganache-cli:v6.9.1 --mnemonic "width whip dream dress captain vessel mix drive oxygen broken soap bone" --db "db_ganache/"
- (cd templates/smart-contracts && yarn && yarn deploy:ganache:local)
- cd templates/react-webui
install:
- yarn
script:
- netstat -an --tcp --program
- yarn test
-
before_install:
- cd templates/api
install:
- yarn
before_script:
- psql -c 'create database starterkitcache;' -U postgres
- psql -c 'create table setvalue(id int primary key, newvalue integer, tx text unique, sender text);' -U postgres
script:
- yarn test