-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
executable file
·84 lines (71 loc) · 1.56 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
image: lkdevelopment/ionic-docker:latest
stages:
- build
- test
- e2e_de
- e2e_en
- deploy
before_script:
- apt-get update >/dev/null
- apt-get install -y locales >/dev/null
- echo "en_US UTF-8" > /etc/locale.gen
- locale-gen en_US.UTF-8
- export LANG=en_US.UTF-8
- export LANGUAGE=en_US:en
- export LC_ALL=en_US.UTF-8
- yarn config set cache-folder .yarn
- yarn
cache:
untracked: true
key: "$CI_PROJECT_ID"
paths:
- node_modules/
- .yarn
build:web:
stage: build
script:
- npm run build
artifacts:
paths:
- www/
.est:karma:
stage: test
script:
- npm run test
test:e2e:de:
stage: e2e_de
script:
- echo "Start Test for e2e Local 'DE'"
- TEST_API_KEY=$TEST_API_KEY SCREENSHOTS=false LANG=de node test-config/protractor.server.js
dependencies:
- build:web
test:e2e:en:
stage: e2e_en
script:
- echo "Start Test for e2e Local 'EN'"
- TEST_API_KEY=$TEST_API_KEY SCREENSHOTS=false LANG=en node test-config/protractor.server.js
dependencies:
- build:web
.build:ios:
script:
- gem install cocoapods
- pods setup
- ionic cordova platform rm ios
- ionic cordova platform add ios
- npm run ios:release
.build:android:
stage: deploy
script:
- ionic cordova platform rm android
- ionic cordova platform add android
- npm run android:release
- ls ./platforms/android/build/outputs/apk/android*.apk
artifacts:
paths:
- platforms/android/build/outputs/apk/
deploy:web:
stage: deploy
only:
- release
script:
- curl $FORGE_DATA