Skip to content

Commit bfb932e

Browse files
authored
Enable builds on CircleCI (#68)
1 parent b7ec706 commit bfb932e

File tree

3 files changed

+65
-8
lines changed

3 files changed

+65
-8
lines changed

.circleci/config.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
working_directory: ~/jsc-android-buildscripts
6+
machine: true
7+
environment:
8+
NDK_VERSION: r18
9+
SDK_VERSION: sdk-tools-linux-3859397.zip
10+
ANDROID_HOME: /home/circleci/android-sdk
11+
ANDROID_NDK: /home/circleci/android-ndk
12+
steps:
13+
- checkout
14+
- run:
15+
name: install android sdk
16+
command: |
17+
curl --silent --show-error --location --fail --retry 3 --output /tmp/${SDK_VERSION} https://dl.google.com/android/repository/${SDK_VERSION} && \
18+
mkdir -p ${ANDROID_HOME} && \
19+
unzip -q /tmp/${SDK_VERSION} -d ${ANDROID_HOME} && \
20+
rm /tmp/${SDK_VERSION}
21+
export PATH=${ANDROID_HOME}/emulator:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:${PATH}
22+
mkdir ~/.android && echo '### User Sources for Android SDK Manager' > ~/.android/repositories.cfg
23+
yes | sdkmanager --licenses && sdkmanager --update
24+
sdkmanager \
25+
"tools" \
26+
"platform-tools" \
27+
"emulator" \
28+
"extras;android;m2repository" \
29+
"extras;google;m2repository" \
30+
"extras;google;google_play_services"
31+
sdkmanager \
32+
"build-tools;25.0.3" \
33+
"build-tools;27.0.3"
34+
sdkmanager "platforms;android-27"
35+
- run:
36+
name: install android ndk
37+
command: |
38+
export PATH=${ANDROID_HOME}/emulator:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:${PATH}
39+
mkdir /tmp/android-ndk-tmp && \
40+
cd /tmp/android-ndk-tmp && \
41+
wget -q https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip &&
42+
unzip -q android-ndk-${NDK_VERSION}-linux-x86_64.zip && \
43+
mv ./android-ndk-${NDK_VERSION} ${ANDROID_NDK} && \
44+
cd ${ANDROID_NDK} && \
45+
rm -rf /tmp/android-ndk-tmp
46+
sdkmanager \
47+
"lldb;3.0" \
48+
"cmake;3.6.4111459"
49+
- run:
50+
name: install subversion
51+
command: |
52+
sudo apt-get update
53+
sudo apt-get install coreutils realpath curl git subversion python-dev ruby gperf -y
54+
- run: npm run clean
55+
- run: npm run download
56+
- run: npm run start
57+
- store_artifacts:
58+
path: dist/
59+
60+
workflows:
61+
version: 2
62+
build_and_test:
63+
jobs:
64+
- build

Dockerfile

-6
This file was deleted.

scripts/info.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
URL="https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-${npm_package_config_webkitGTK}"
44
ROOTDIR=$PWD
55

6-
export REVISION=$(svn info --show-item last-changed-revision "${URL}")
7-
86
INFO=$(svn info "${URL}")
7+
export REVISION=$(svn info "${URL}" | sed -n 's/^Revision: //p')
98
CONFIG=$(node -e "console.log(require('$ROOTDIR/package.json').config)")
109
APPLE_VERSION=$(svn cat "${URL}/Source/WebCore/Configurations/Version.xcconfig" | grep 'MAJOR_VERSION\s=\|MINOR_VERSION\s=\|TINY_VERSION\s=\|MICRO_VERSION\s=\|NANO_VERSION\s=')
1110

0 commit comments

Comments
 (0)