-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (42 loc) · 1.13 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
sudo: required
language: node_js
node_js:
- "9"
cache:
directories:
- node_modules
# services:
# - docker
# env:
# global:
# - IMAGE_NAME=nfhbar/singletxmultisig
# - PACKAGE_VERSION="$(awk '/version/{gsub(/("|",)/,"",$2);print $2};' package.json)"
# - docker pull "${IMAGE_NAME}" || true
install:
- npm install -g truffle
- npm install -g ganache-cli
- npm install
script:
- npm run lint
- npm run ganache
- sleep 5
- truffle migrate
- truffle test
- npm run stop
# - truffle networks --clean
# - truffle publish
# - sleep 60
# - docker build --pull --cache-from "${IMAGE_NAME}" --tag "${IMAGE_NAME}" .
# - docker run -e PACKAGE_VERSION "${IMAGE_NAME}"
after_script:
- npm run coverage && cat coverage/lcov.info | coveralls
# - docker images
# before_deploy:
# - docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
# - docker tag "$IMAGE_NAME" "${IMAGE_NAME}:latest"
# - docker tag "$IMAGE_NAME" "${IMAGE_NAME}:${PACKAGE_VERSION}"
# deploy:
# provider: script
# script: docker push "${IMAGE_NAME}:latest" && docker push "${IMAGE_NAME}:${PACKAGE_VERSION}"
# on:
# branch: master