File tree Expand file tree Collapse file tree 1 file changed +27
-7
lines changed Expand file tree Collapse file tree 1 file changed +27
-7
lines changed Original file line number Diff line number Diff line change 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'
7
15
8
16
environment :
9
17
' CI ' : ' true'
@@ -23,7 +31,19 @@ hooks:
23
31
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> $HOME/.npmrc
24
32
echo "registry=https://registry.npmjs.org/" >> $HOME/.npmrc
25
33
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
27
47
28
48
tests :
29
49
- yarn run prepublishOnly
You can’t perform that action at this time.
0 commit comments