-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (22 loc) · 845 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
sudo: required
services:
- docker
# Build test container
before_install:
- docker build -t tylersuchan/react-test -f ./client/Dockerfile.dev ./client
# Run test container's tests
script:
- docker run tylersuchan/react-test npm test -- --coverage
# Build the prod versions of each container
after_success:
- docker build -t tylersuchan/multi-client ./client
- docker build -t tylersuchan/multi-nginx ./nginx
- docker build -t tylersuchan/multi-server ./server
- docker build -t tylersuchan/multi-worker ./worker
# Log in to the docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# Take those images and push them to docker hub
- docker push tylersuchan/multi-client
- docker push tylersuchan/multi-nginx
- docker push tylersuchan/multi-server
- docker push tylersuchan/multi-worker