Created
April 1, 2020 07:05
-
-
Save JannisRex/6b718697e79973a3fbbd0e0c7a3348eb to your computer and use it in GitHub Desktop.
Config File for CircleCI (Runs Lint&Tests then Build)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2.1 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:10 | |
working_directory: ~/ProjektArbeit-FIAE | |
steps: | |
- checkout | |
- restore_cache: | |
key: node_modules-{{ checksum "package-lock.json" }} | |
- run: | |
name: installing expo-cli | |
command: npm install -D expo-cli | |
- run: | |
name: installing packages | |
command: npm install | |
- save_cache: | |
key: node_modules-{{ checksum "package-lock.json" }} | |
paths: | |
- ~/.cache/npm | |
- run: | |
name: Expo Login & Build | |
command: | | |
npx expo login -u $ExpoLogin -p $ExpoPassword && | |
npx expo build:android --release-channel $ReleaseChannel --no-publish --non-interactive | |
- persist_to_workspace: | |
root: ~/ProjektArbeit-FIAE | |
paths: | |
- node_modules | |
test: | |
docker: | |
- image: circleci/node:10 | |
working_directory: ~/ProjektArbeit-FIAE | |
steps: | |
- checkout | |
- attach_workspace: | |
at: ~/ProjektArbeit-FIAE | |
- restore_cache: | |
key: node_modules-{{ checksum "package-lock.json" }} | |
- run: | |
name: tsc type-checking && eslint | |
command: | | |
npm i -D [email protected] && | |
npm i -D [email protected] && | |
npm i -D [email protected] && | |
npm i -D [email protected] && | |
npm i -D @typescript-eslint/[email protected] && | |
npm i -D @typescript-eslint/[email protected] && | |
npm i -D @types/[email protected] && | |
npm i -D @types/[email protected] && | |
npx eslint App.tsx && npx eslint ./src/* && npx typescript -p ./tsconfig.json | |
workflows: | |
version: 2.1 | |
android-build-test: | |
jobs: | |
- test | |
- build: | |
requires: | |
- test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment