Skip to content

Commit 9820379

Browse files
authored
chore(ci): some tweaks (Kocal#287)
Use [`yarn install --frozen-lockfile`](https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile) to install dependencies
1 parent e441b18 commit 9820379

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ before_install:
6767
set -e
6868
6969
tfold "Working inside \\e[1;33m$PWD\\e[0m folder..." echo $PWD
70-
tfold "Installing extension dependencies..." yarn
70+
tfold "Installing extension dependencies..." yarn install --frozen-lockfile
7171
tfold "Building extension..." yarn build
7272
tfold "Testing version behavior" $TRAVIS_BUILD_DIR/tests/test_version.sh
7373
if [[ "$VUE_TEMPLATE" =~ ^full ]]; then tfold "Linting..." yarn lint --fix; fi
@@ -90,6 +90,9 @@ before_install:
9090
}
9191
export -f create_extension_workflow
9292
93+
install:
94+
- yarn install --frozen-lockfile
95+
9396
script:
9497
- |
9598
if [[ "${TRAVIS_BRANCH}" =~ ^dependabot ]]; then
@@ -102,8 +105,8 @@ script:
102105
cd $TRAVIS_BUILD_DIR/examples/$VUE_TEMPLATE
103106
extension_workflow
104107
else
105-
echo -e "\\e[1;34mRunning tests for global project.\\e[0m"
106-
yarn
108+
echo -e "\\e[1;34mRunning tests for global project...\\e[0m"
109+
exit 0 # Actually there is nothing to tests :shrug:
107110
fi
108111
109112
exit $?

0 commit comments

Comments
 (0)