mirror of
https://github.com/sensebox/blockly-app
synced 2025-04-25 22:00:32 +02:00
fix travis fdroid deploy
This commit is contained in:
parent
7296135b56
commit
40db157233
2 changed files with 15 additions and 7 deletions
20
.travis.yml
20
.travis.yml
|
@ -1,14 +1,22 @@
|
||||||
language: android
|
language: android
|
||||||
node_js:
|
|
||||||
- "8"
|
|
||||||
|
|
||||||
before_script:
|
android:
|
||||||
- npm install
|
components:
|
||||||
|
- tools
|
||||||
|
- platform-tools
|
||||||
|
- build-tools-27.0.3
|
||||||
|
- android-27
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- yes | sdkmanager "platforms;android-27"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- nvm install 8
|
||||||
- npm install -g ionic cordova
|
- npm install -g ionic cordova
|
||||||
|
- npm install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run android:build # implies web build in www/ dir
|
||||||
- npm run android:build
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
# deploy web build to gh-pages branch
|
# deploy web build to gh-pages branch
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
target=https://$GITHUB_TOKEN@github.com/sensebox/blockly-app.git
|
target=https://$GITHUB_TOKEN@github.com/sensebox/blockly-app.git
|
||||||
branch=fdroid
|
branch=fdroid
|
||||||
|
|
||||||
git clone --depth=1 -b $target $repo fdroid
|
git clone --depth=1 -b $branch $target fdroid
|
||||||
rm -rf fdroid/*
|
rm -rf fdroid/*
|
||||||
mv -f platforms/android fdroid/
|
mv -f platforms/android fdroid/
|
||||||
cd fdroid
|
cd fdroid
|
||||||
|
|
Loading…
Add table
Reference in a new issue