-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
73 lines (65 loc) · 2.24 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
service:
- docker
apt:
update: true
packages:
- wget
- libappindicator1
- fonts-liberation
- docker-ce
- python-pip
install: true
before_script:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb >/dev/null 2>&1
- sudo pip install httpie >/dev/null 2>&1
language: node_js
node_js: lts/*
script:
- export root=$(pwd)
# frontend
- cd $root/frontend
- npm i
#
- npm t
- npm run e2e
#
- npm run build
- npm run dist
#
- cd $root
- cp -Rf ./.dockerignore.frontend ./.dockerignore
- docker build --rm --force-rm --no-cache -f Dockerfile.frontend -t daggerok/mean-stack:frontend .
- docker run -d --rm -p 80:80 -e "PORT=80" --name run-mean-stack-frontend daggerok/mean-stack:frontend
- sleep 1
- http http://127.0.0.1/
- docker stop run-mean-stack-frontend
#
- cp -Rf ./.dockerignore.frontend-build ./.dockerignore
- docker build --no-cache --force-rm --rm -f Dockerfile.frontend-build -t daggerok/mean-stack:frontend-build .
- docker run -d --rm -p 80:80 -e "PORT=80" --name run-mean-stack-frontend-build daggerok/mean-stack:frontend-build
- sleep 1
- http http://127.0.0.1/
- docker stop run-mean-stack-frontend-build
env:
global:
- TERM=dumb
# GITHUB_TOKEN:
- secure: A1bgIsJ5pkg9twsJPpwTdrmLraBPuvENIaGrultqw+A8kSIXmaMphqPxeJXRkBdIT4m+8/gObs9KZPZsjWu0o0tgGJgNjB4Xoti7dLOxpgHX+uaYob/YXYcA5hRAYO5wXrerdxOQrUTc4ls79H3U6AW2lq2iuN9OliJbksMQHGSnOEjIqb5VmbhsP/2NW12xFIrvMf+pNOZ8V71OKxY71nuGO7GjJAixFKlgdspsRQI9ymzjquopK4oPYl6rvsDFi2BzDPmBL9fkYhkj1k0jOqObaqYyN14d3gRNPIEIh09YjCESYF558MMJQq+iUo0wh0ALuptb7gNkJJ5Z7U92LozgwFp5oFJEVNPDg5t9J1Loa5knPMxoA5gIyxriVlHKaV2lJTYiiDN/vUrr98CfmSznUxW56B8XCXOVl+yLqdT10gPSpk3ozhjfEtCCX03Yh5gRzJGhlF7yoMDJPgGBknYUqsFCiJiWBpy94JtMpk8uT3o2C+ELppD5kebrpxjh3EGObjmG/fZ9qmWaRaYiBx/V4E/Wq3dYypEfw+W2c7qXcSEN4uZ4oA5qRkkGXuDxUISCZ+c5s7JuVGLpHm+Y51g2ItbJor7VcLwDLGAN0IvztON7UnSNTQPY4HMTQdhydFM8BhrqTa1EQuYGVdD9E3IcykmdAcKvpM1U36Zfhqs=
language: java
java: oraclejdk8
before_deploy:
- cd $root
- ./gradlew documentation
deploy:
provider: pages
skip-cleanup: true
github-token: "$GITHUB_TOKEN"
keep-history: true
on:
branch: master
local-dir: public
target_branch: gh-pages