aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 9693eb55a..d5f1dd0c0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,7 +27,24 @@ cache: npm
27 27
28before_install: 28before_install:
29 - git submodule update --init --recursive 29 - git submodule update --init --recursive
30 - |
31 if [ $TRAVIS_BRANCH == "nightly" ]; then
32 git remote add source https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1
33 git fetch source
34 git merge --no-ff --commit --no-edit source/develop
35 CHANGES_COUNT=$(git diff --stat HEAD origin/nightly | wc -l)
36 echo $TRAVIS_EVENT_TYPE
37 echo $changes
38 if [ $CHANGES_COUNT -eq 0 -a $TRAVIS_EVENT_TYPE == "cron" ]; then
39 travis_terminate 0;
40 else
41 git submodule update --remote --force
42 git add .
43 git diff-index --quiet HEAD || git commit -m "Update submodules"
44 fi
45 fi
30install: 46install:
47 - cd recipes && npm install && npm run package && cd ..
31 - travis_retry npx lerna bootstrap 48 - travis_retry npx lerna bootstrap
32 - travis_retry npm install node-sass -g 49 - travis_retry npm install node-sass -g
33before_script: 50before_script:
@@ -40,7 +57,8 @@ script:
40 fi 57 fi
41 - | 58 - |
42 if [ $TRAVIS_BRANCH == "nightly" ]; then 59 if [ $TRAVIS_BRANCH == "nightly" ]; then
43 npm version prerelease --preid=nightly -m "%s [skip ci]" 60 npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]"
61 echo "Building..."
44 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies 62 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies
45 if [ $TRAVIS_OS_NAME == "osx" ]; then 63 if [ $TRAVIS_OS_NAME == "osx" ]; then
46 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1 64 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1