forked from qaul/qaul.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (47 loc) · 906 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
43
44
45
46
47
48
49
50
51
stages:
- test
- build
- publish
# Build the Rust root on nightly
build:nightly:
image: rustlang/rust:nightly
script:
- cargo build
# Run test suite
test_webgui:
stage: test
image: circleci/node:10-browsers
cache:
key: yarn
paths:
- webgui/.yarn
script:
- cd webgui
- yarn install --pure-lockfile --cache-folder .yarn
- yarn run test
build_webgui:
stage: build
image: node:10
cache:
key: yarn
paths:
- webgui/.yarn
script:
- cd webgui
- yarn install --pure-lockfile --cache-folder .yarn
- yarn run build --prod
artifacts:
paths:
- webgui/dist/
publish_webgui:
stage: publish
environment:
name: master
url: http://qaul.surge.sh/
only:
- master
image: andthensome/alpine-surge-bash
script:
- cd webgui/dist/
- cp index.html 200.html
- surge --project . --domain qaul.surge.sh