mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
trying new CI approach
This commit is contained in:
parent
9d359a50e2
commit
da1cf7c3a1
20
circle.yml
20
circle.yml
@ -9,19 +9,19 @@ general:
|
|||||||
only:
|
only:
|
||||||
- master # ignore PRs and branches
|
- master # ignore PRs and branches
|
||||||
|
|
||||||
#dependencies:
|
dependencies:
|
||||||
# pre:
|
pre:
|
||||||
# - ./scripts/docs/prepare.sh
|
- ./scripts/docs/prepare.sh
|
||||||
# cache_directories:
|
cache_directories:
|
||||||
# - "~/ionic-site" # cache ionic-site
|
- "~/ionic-site" # cache ionic-site
|
||||||
|
|
||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
- echo "No tests are written at the moment. But we will attempt to build the library with the latest changes."
|
- echo "No tests are written at the moment. But we will attempt to build the library with the latest changes."
|
||||||
- npm run build_bundle
|
- npm run build_bundle
|
||||||
|
|
||||||
#deployment:
|
deployment:
|
||||||
# staging:
|
staging:
|
||||||
# branch: master
|
branch: master
|
||||||
# commands:
|
commands:
|
||||||
# - ./scripts/docs/update_docs.sh
|
- ./scripts/docs/update_docs.sh
|
||||||
|
@ -14,7 +14,10 @@ function init {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function run {
|
function run {
|
||||||
|
# no need to run on PRs
|
||||||
|
if [ -z $CI_PULL_REQUEST ] then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
if [ ! -d "$SITE_DIR" ]; then
|
if [ ! -d "$SITE_DIR" ]; then
|
||||||
echo "checking out"
|
echo "checking out"
|
||||||
cd ./scripts
|
cd ./scripts
|
||||||
|
@ -30,8 +30,6 @@ function run {
|
|||||||
echo "-- No changes detected for the following commit, docs not updated."
|
echo "-- No changes detected for the following commit, docs not updated."
|
||||||
echo "https://github.com/driftyco/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1"
|
echo "https://github.com/driftyco/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1"
|
||||||
else
|
else
|
||||||
git config --global user.email "hi@ionicframework.com"
|
|
||||||
git config --global user.name "Ionitron"
|
|
||||||
git add -A
|
git add -A
|
||||||
git commit -am "Automated build of native docs driftyco/$CIRCLE_PROJECT_REPONAME@$CIRCLE_SHA1"
|
git commit -am "Automated build of native docs driftyco/$CIRCLE_PROJECT_REPONAME@$CIRCLE_SHA1"
|
||||||
git push origin master
|
git push origin master
|
||||||
|
@ -17,7 +17,11 @@ function run {
|
|||||||
if [[ "$DEPTH" != "" ]]; then
|
if [[ "$DEPTH" != "" ]]; then
|
||||||
ARGS="$ARGS --depth=$DEPTH"
|
ARGS="$ARGS --depth=$DEPTH"
|
||||||
fi
|
fi
|
||||||
git clone https://driftyco:$GH_TOKEN@github.com/$REPOSITORY $DIRECTORY $ARGS
|
|
||||||
|
git config --global user.email "hi@ionicframework.com"
|
||||||
|
git config --global user.name "Ionitron"
|
||||||
|
|
||||||
|
git clone git@github.com:driftyco/$REPOSITORY.git $DIRECTORY $ARGS
|
||||||
cd $DIRECTORY
|
cd $DIRECTORY
|
||||||
git fetch origin --tags
|
git fetch origin --tags
|
||||||
cd ../
|
cd ../
|
||||||
|
Loading…
Reference in New Issue
Block a user