Skip to content

Commit ad31d3c

Browse files
committed
Merge branch 'master' of /Users/andy/es2015-library-skeleton
2 parents 3a2914c + 77d7c2f commit ad31d3c

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

solano.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
nodejs:
2-
version:
3-
SPLIT:
4-
- '8.9'
5-
- '7.10'
6-
- '6.13'
1+
plan:
2+
- node_6
3+
- node_7
4+
- node_8
5+
profiles:
6+
node_6:
7+
nodejs:
8+
version: '6.11.5'
9+
node_7:
10+
nodejs:
11+
version: '7.10.1'
12+
node_8:
13+
nodejs:
14+
version: '8.9.0'
715

816
environment:
917
'CI': 'true'
@@ -23,7 +31,19 @@ hooks:
2331
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> $HOME/.npmrc
2432
echo "registry=https://registry.npmjs.org/" >> $HOME/.npmrc
2533
yarn install --ignore-engines --check-files --frozen-lockfile
26-
post_build: npm run codecov && npm run semantic-release
34+
post_build: |
35+
# Only deploy if all tests have passed
36+
if [[ "passed" != "$TDDIUM_BUILD_STATUS" ]]; then
37+
echo "\$TDDIUM_BUILD_STATUS = $TDDIUM_BUILD_STATUS"
38+
echo "Will only deploy on passed builds"
39+
exit
40+
fi
41+
# Only deploy on 'node_8' profile
42+
if [[ "node_8" != "$SOLANO_PROFILE_NAME" ]]; then
43+
echo "Will only deploy on 'node_8' profile"
44+
exit
45+
fi
46+
npm run codecov && npm run semantic-release
2747
2848
tests:
2949
- yarn run prepublishOnly

0 commit comments

Comments
 (0)