-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.gitlab-ci.yml
50 lines (42 loc) · 1.03 KB
/
.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
image: ubuntu:18.04
stages:
- test
- publish
before_script:
- apt-get update -y
- apt-get install curl gnupg wget git -y
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt-get remove cmdtest
- apt-get update -y
- apt-get install firefox nodejs npm yarn -y
- npm install -g node-gyp
- npm install -g cross-env
- yarn
- wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
- sh -c 'tar -x geckodriver -zf geckodriver-v0.23.0-linux64.tar.gz -O > /usr/bin/geckodriver'
- chmod +x /usr/bin/geckodriver
- rm geckodriver-v0.23.0-linux64.tar.gz
test:
stage: test
script:
- yarn test
test-e2e:
stage: test
script:
- yarn test:e2e
test-lint:
stage: test
script:
- yarn lint
test-build:
stage: test
script:
- yarn build
semantic-release:
stage: publish
script:
- yarn build
- yarn semantic-release
only:
- master