.gitlab-ci.yml 435 Bytes
Newer Older
Wietse Kuipers's avatar
Wietse Kuipers committed
1
image: wkuipers/docker-react-native-yarn:latest
Wietse Kuipers's avatar
Add CI  
Wietse Kuipers committed
2

3
4
5
6
7
8
9
10
11
variables:
    GRADLE_USER_HOME: $CI_PROJECT_DIR/.gradle

cache:
    key: $CI_PROJECT_NAME
    paths:
        - .gradle/wrapper/
        - .gradle/caches/

Wietse Kuipers's avatar
Wietse Kuipers committed
12
13
14
before_script:
    - yarn install

Wietse Kuipers's avatar
Add CI  
Wietse Kuipers committed
15
stages:
Wietse Kuipers's avatar
Wietse Kuipers committed
16
    - lint
Wietse Kuipers's avatar
Wietse Kuipers committed
17
    - build
Wietse Kuipers's avatar
Add CI  
Wietse Kuipers committed
18

Wietse Kuipers's avatar
Wietse Kuipers committed
19
20
eslint:
    stage: lint
21
    script:
Wietse Kuipers's avatar
Wietse Kuipers committed
22
        - yarn run eslint *.js app
Wietse Kuipers's avatar
Wietse Kuipers committed
23

Wietse Kuipers's avatar
Wietse Kuipers committed
24
build_android:
Wietse Kuipers's avatar
Wietse Kuipers committed
25
26
    stage: build
    script:
Wietse Kuipers's avatar
Wietse Kuipers committed
27
28
        - cd android
        - ./gradlew build