-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
41 lines (37 loc) · 977 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: node_js
node_js: "stable"
services:
- docker
install:
- docker build -t vuedock .
- npm install
script:
- npm run eslint
- |
docker run --rm -it \
-v "$(pwd)/test":/src \
-v /var/run/docker.sock:/var/run/docker.sock \
iorubs/dgoss run vuedock
- |
# Run default Vue unit tests
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
vuedock docker build --target build -t vueapp .
docker run --rm vueapp yarn test:unit
- |
# Validate production container
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
vuedock docker build -t app .
# Run prod app dgoss tests
docker run --rm -it \
-v "$(pwd)/generator/template/dgoss":/src \
-v /var/run/docker.sock:/var/run/docker.sock \
iorubs/dgoss run app
deploy:
provider: script
script:
- "cp .npmrc.template $HOME/.npmrc && npm publish"
skip_cleanup: true
on:
branch: master