forked from marcoturi/ionic-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
50 lines (44 loc) · 873 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
image: marcoturi/ionic:latest
stages:
- test
- deploy
before_script:
- npm prune
- npm install
- gem install scss_lint
- export DISPLAY=:99
cache:
paths:
- node_modules/
build_web:
stage: test
only:
- master
script:
- npm run lint
- npm run scss-lint
- ./node_modules/.bin/webdriver-manager update
- /usr/bin/Xvfb :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
- npm run test
- npm run build
- npm run e2e
build_ios:
stage: deploy
only:
- release
script:
- ./sh/ionic-login.sh
- ls
- npm run ios:release:ci
- ./sh/ionic-package-ios.sh
build_android:
stage: deploy
only:
- release
script:
- ls
- npm run android:release
- ls ./platforms/android/build/outputs/apk/android*.apk
artifacts:
paths:
- platforms/android/build/outputs/apk/