Skip to content

Commit 093bc29

Browse files
gengjiawenDanielZlotin
authored andcommitted
Add circle ci (#41)
* initial ci * refactor structure * fix * fix * fix * fix * fix * fix * fix indent * add missing docker * add gperf * add ruby * add python * change to unknown bash * fix android build
1 parent e4dc80a commit 093bc29

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
working_directory: ~/jsc-android-buildscripts
6+
docker:
7+
- image: gengjiawen/jsc-android-buildscripts
8+
steps:
9+
- checkout
10+
- restore_cache:
11+
keys:
12+
- v1-dependencies-{{ checksum "package.json" }}
13+
# fallback to using the latest cache if no exact match is found
14+
- v1-dependencies-
15+
- run: npm install
16+
- save_cache:
17+
paths:
18+
- node_modules
19+
key: v1-dependencies-{{ checksum "package.json" }}
20+
- run: npm run download
21+
- run: npm run prep
22+
- run: npm run start
23+
- run:
24+
name: Build Android
25+
command: |
26+
cd measure
27+
npm install
28+
cd android && ./gradlew assembleRelease
29+
30+
workflows:
31+
version: 2
32+
build_and_test:
33+
jobs:
34+
- build

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM gengjiawen/android-ndk
2+
3+
RUN apt update && \
4+
apt install curl git subversion python-dev ruby gperf -y && \
5+
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
6+
apt install -y nodejs

scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ cd $ROOTDIR/lib
1313
cd $ROOTDIR
1414

1515
npm run info
16-
say -v Carmit "I am not slacking off, my code's compiling."
16+
echo "I am not slacking off, my code is compiling."

0 commit comments

Comments
 (0)