-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy path.travis.yml
24 lines (20 loc) · 1.02 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
sudo: required
services:
- docker
env:
DOCKER_COMPOSE_VERSION: 1.11.2
before_install:
- sudo rm /usr/local/bin/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 -f docker/docker-compose.yml pull
- docker-compose -f docker/docker-compose.yml up -d
- docker ps
script:
- docker-compose -f docker/docker-compose.yml run truffle3_frontend /bin/sh -c "npm install; npm run lint"
- docker-compose -f docker/docker-compose.yml run truffle3_frontend /bin/sh -c "/root/truffle/cli.js compile"
- docker-compose -f docker/docker-compose.yml run truffle3_frontend /bin/sh -c "npm run build"
- docker-compose -f docker/docker-compose.yml run truffle3_frontend /bin/sh -c "/root/truffle/cli.js migrate"
- docker-compose -f docker/docker-compose.yml run truffle3_frontend /bin/sh -c "/root/truffle/cli.js test"