Skip to content

Commit

Permalink
fixed tests and disabled travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
da1nerd committed Oct 23, 2019
1 parent c579628 commit cc0328a
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 96 deletions.
108 changes: 54 additions & 54 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ env:
# - node_modules
before_install:
- ./scripts/skip_travis_commits.sh
- sudo add-apt-repository --yes ppa:ubuntu-wine/ppa
- sudo add-apt-repository --yes ppa:arx/release
- sudo apt-get update -d
- sudo apt-get install -y -q innoextract wine python-software-properties
- wine --version
- innoextract --version
- "./scripts/innosetup/innoinstall.sh"
- sudo cp scripts/innosetup/iscc /usr/local/bin/iscc
- iscc /? 2> /dev/null | grep "Inno Setup Preprocessor"
# private keys for app
- if [ "${TRAVIS_SECURE_ENV_VARS}" != "false" ]; then openssl aes-256-cbc -K $encrypted_8efd489acff0_key
-iv $encrypted_8efd489acff0_iv -in private.json.enc -out src/config/private.json
-d; fi
# dropbox uploader key
- if [ "${TRAVIS_SECURE_ENV_VARS}" != "false" ]; then openssl aes-256-cbc -K $encrypted_8efd489acff0_key
-iv $encrypted_8efd489acff0_iv -in .dropbox_uploader.enc -out ~/.dropbox_uploader
-d; fi
#- sudo add-apt-repository --yes ppa:ubuntu-wine/ppa
#- sudo add-apt-repository --yes ppa:arx/release
#- sudo apt-get update -d
#- sudo apt-get install -y -q innoextract wine python-software-properties
#- wine --version
#- innoextract --version
#- "./scripts/innosetup/innoinstall.sh"
#- sudo cp scripts/innosetup/iscc /usr/local/bin/iscc
#- iscc /? 2> /dev/null | grep "Inno Setup Preprocessor"
## private keys for app
#- if [ "${TRAVIS_SECURE_ENV_VARS}" != "false" ]; then openssl aes-256-cbc -K $encrypted_8efd489acff0_key
# -iv $encrypted_8efd489acff0_iv -in private.json.enc -out src/config/private.json
# -d; fi
## dropbox uploader key
#- if [ "${TRAVIS_SECURE_ENV_VARS}" != "false" ]; then openssl aes-256-cbc -K $encrypted_8efd489acff0_key
# -iv $encrypted_8efd489acff0_iv -in .dropbox_uploader.enc -out ~/.dropbox_uploader
# -d; fi

# install git lfs
#- mkdir -p $HOME/bin
Expand All @@ -50,29 +50,29 @@ before_script:
#- npm install door43-client -g
script: npm test
after_success:
- test $TRAVIS_TEST_RESULT == 0 && $TRAVIS_PULL_REQUEST == "false"
- test -z $TRAVIS_TAG && ./scripts/bump.sh
#- door43-client index -i src/index/index.sqlite -f
- test -f src/index/index.sqlite
#- door43-client download -i src/index/index.sqlite -d src/index/resource_containers -f -c
- test -d src/index/resource_containers
- bower install
# ensure bower installed correctly
- test -d src/components
- gulp prince
# ensure prince was installed
- test -d src/prince
- gulp build --win
- gulp build --linux
- gulp build --osx
- gulp release
# upload to dropbox
- if [ -f ~/.dropbox_uploader ]; then
echo 'uploading build to dropbox';
./dropbox_uploader.sh -q upload ./release/ travis-artifacts/$TRAVIS_JOB_NUMBER/;
else
echo 'missing ~/.dropbox_uploader. Skipping dropbox upload.';
fi
#- test $TRAVIS_TEST_RESULT == 0 && $TRAVIS_PULL_REQUEST == "false"
#- test -z $TRAVIS_TAG && ./scripts/bump.sh
##- door43-client index -i src/index/index.sqlite -f
#- test -f src/index/index.sqlite
##- door43-client download -i src/index/index.sqlite -d src/index/resource_containers -f -c
#- test -d src/index/resource_containers
#- bower install
## ensure bower installed correctly
#- test -d src/components
#- gulp prince
## ensure prince was installed
#- test -d src/prince
#- gulp build --win
#- gulp build --linux
#- gulp build --osx
#- gulp release
## upload to dropbox
#- if [ -f ~/.dropbox_uploader ]; then
# echo 'uploading build to dropbox';
# ./dropbox_uploader.sh -q upload ./release/ travis-artifacts/$TRAVIS_JOB_NUMBER/;
# else
# echo 'missing ~/.dropbox_uploader. Skipping dropbox upload.';
# fi
deploy:
## develop branch
#- provider: surge
Expand Down Expand Up @@ -101,17 +101,17 @@ deploy:
# tags: false
# condition: "-d ./release && $TRAVIS_BRANCH =~ ^release-.*$"
# master branch
- provider: releases
api_key:
secure: brjmL3cyCTr6swNCqka2fkc41j+PO2tqXZhE9QyNoDEXcxR1FOwPoPut/8h4N/pISfkf2FibtsWqThhW1Xz1pVNNMBlHRblJsSecfvXOtn7kneCsAV+QBngbPuA8OKzfhXTUeIQNlIpfG+rwlDg28wOthDI/7ADBOYgGQWeOd7o=
file:
- release/*.exe
- release/*.zip
file_glob: true
skip_cleanup: true
overwrite: true
draft: true
on:
tags: true
repo: unfoldingWord-dev/ts-desktop
condition: "-d ./release"
#- provider: releases
# api_key:
# secure: brjmL3cyCTr6swNCqka2fkc41j+PO2tqXZhE9QyNoDEXcxR1FOwPoPut/8h4N/pISfkf2FibtsWqThhW1Xz1pVNNMBlHRblJsSecfvXOtn7kneCsAV+QBngbPuA8OKzfhXTUeIQNlIpfG+rwlDg28wOthDI/7ADBOYgGQWeOd7o=
# file:
# - release/*.exe
# - release/*.zip
# file_glob: true
# skip_cleanup: true
# overwrite: true
# draft: true
# on:
# tags: true
# repo: unfoldingWord-dev/ts-desktop
# condition: "-d ./release"
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"jest": {
"testPathIgnorePatterns": [
"out"
],
"modulePathIgnorePatterns": [
"out"
]
},
"dependencies": {
Expand Down
90 changes: 48 additions & 42 deletions src/js/__tests__/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,54 @@ describe('DataManager', () => {
return dataManager.getSourcesByProject('mat').then(sources => {
// TRICKY: This list may change as the default resources are updated in src/index
expect(sources.map(s => s.unique_id)).toEqual([
'ar_mat_avd',
'id_mat_ayt',
'pt-br_mat_blv',
'zh_mat_cuv',
'sr-Latn_mat_dkl',
'fr_mat_f10',
'hu_mat_kar',
'ru_mat_rsb',
'sr-Latn_mat_stf',
'gu_mat_udb',
'en_mat_udb',
'vi_mat_udb',
'ne_mat_udb',
'hi_mat_udb',
'or_mat_udb',
'gu_mat_ulb',
'en_mat_ulb',
'as_mat_ulb',
'pt-br_mat_ulb',
'id_mat_ulb',
'ru_mat_ulb',
'ur-Deva_mat_ulb',
'ne_mat_ulb',
'tl_mat_ulb',
'pa_mat_ulb',
'te_mat_ulb',
'ta_mat_ulb',
'fr_mat_ulb',
'plt_mat_ulb',
'ceb_mat_ulb',
'hr_mat_ulb',
'bn_mat_ulb',
'hi_mat_ulb',
'ha_mat_ulb',
'ml_mat_ulb',
'ilo_mat_ulb',
'sw_mat_ulb',
'kn_mat_ulb',
'my_mat_ulb',
'or_mat_ulb',
'en_mat_ult',
'en_mat_ust'
"ar_mat_avd",
"id_mat_ayt",
"pt-br_mat_blv",
"zh_mat_cuv",
"sr-Latn_mat_dkl",
"fr_mat_f10",
"pa_mat_irv",
"hu_mat_kar",
"ar_mat_nav",
"fa_mat_opv",
"ru_mat_rsb",
"sr-Latn_mat_stf",
"en_mat_t4t",
"gu_mat_udb",
"vi_mat_udb",
"en_mat_udb",
"ne_mat_udb",
"hi_mat_udb",
"mr_mat_udb",
"or_mat_udb",
"el-x-koine_mat_ugnt",
"gu_mat_ulb",
"ur-deva_mat_ulb",
"as_mat_ulb",
"en_mat_ulb",
"pt-br_mat_ulb",
"id_mat_ulb",
"ru_mat_ulb",
"ne_mat_ulb",
"tl_mat_ulb",
"pa_mat_ulb",
"te_mat_ulb",
"ta_mat_ulb",
"fr_mat_ulb",
"plt_mat_ulb",
"ceb_mat_ulb",
"hr_mat_ulb",
"bn_mat_ulb",
"hi_mat_ulb",
"ha_mat_ulb",
"ml_mat_ulb",
"ilo_mat_ulb",
"sw_mat_ulb",
"kn_mat_ulb",
"my_mat_ulb",
"or_mat_ulb",
"en_mat_ult",
"en_mat_ust"
]);
});
});
Expand Down

0 comments on commit cc0328a

Please sign in to comment.