-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
32 lines (29 loc) · 1.12 KB
/
circle.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
machine:
node:
version:
6.9.5
services:
- docker
general:
artifacts:
- tmp/output
dependencies:
cache_directories:
- ~/.yarn-cache
- ~/.docker
override:
- yarn install --cache-folder ~/.yarn-cache --pure-lockfile
- mkdir -p ~/.docker
- if [[ -e ~/.docker/hub.tar ]]; then docker load -i ~/.docker/hub.tar; fi
- if [[ -e ~/.docker/node-chrome.tar ]]; then docker load -i ~/.docker/node-chrome.tar; fi
- if [[ -e ~/.docker/node-firefox.tar ]]; then docker load -i ~/.docker/node-firefox.tar; fi
- docker-compose up -d
- if [[ ! -e ~/.docker/hub.tar ]]; then docker save selenium/hub:3.3.1 > ~/.docker/hub.tar; fi
- if [[ ! -e ~/.docker/node-chrome.tar ]]; then docker save selenium/node-chrome:3.3.1 > ~/.docker/node-chrome.tar; fi
- if [[ ! -e ~/.docker/node-firefox.tar ]]; then docker save selenium/node-firefox:3.3.1 > ~/.docker/node-firefox.tar; fi
test:
override:
- yarn run lint
- DOCKER_TEST_URL=http://$(ip addr show docker0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1):3090 yarn run test:coverage
post:
- bash <(curl -s https://codecov.io/bash)