.gitlab-ci.yml 569 Bytes
Newer Older
1
2
image: registry.gitlab.com/showcheap/android-ci:react-native

3
4
5
variables:
  GIT_SUBMODULE_STRATEGY: recursive

6
before_script:
7
8
  - git submodule sync --recursive
  - git submodule update --init --recursive
9
10
11
12
  - export GRADLE_USER_HOME=`pwd`/.gradle
  - chmod +x ./gradlew
  - npm install

13

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cache:
  key: "$CI_COMMIT_REF_NAME"
  paths:
     - .gradle/

stages:
  - test
  - build

test:
  stage: test
  script:
     - ./gradlew check

build:
  stage: build
  script:
     - ./gradlew assembleRelease
  artifacts:
    expire_in: 1 week
    paths:
      - app/build/outputs/