-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
42 lines (37 loc) · 828 Bytes
/
.gitlab-ci.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
image: node:8
before_script:
# - apt-get --quiet update --yes
# - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
# install paketnode js
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo --quiet -y "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt-get update && apt-get install yarn
- yarn global add @angular/cli@latest
- yarn global add gulp
- yarn add semantic-ui
- cd semantic/
- gulp build
- cd ..
stages:
- test
- deploy
#deploy debug
test:
stage: test
script:
- npm install
- yarn install
- ng build
artifacts:
paths:
- dist/
#deploy build production
deploy:
stage: deploy
script:
- npm install
- yarn install
- npm run prod
artifacts:
paths:
- dist/