-
Notifications
You must be signed in to change notification settings - Fork 0
/
solano.yml
64 lines (58 loc) · 1.66 KB
/
solano.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
plan:
- node_6
- node_7
- node_8
profiles:
node_6:
nodejs:
version: '6.11.5'
node_7:
nodejs:
version: '7.10.1'
node_8:
nodejs:
version: '8.9.0'
tool_config:
git:
version: '2.0.3'
environment:
'CI': 'true'
hooks:
pre_setup: |
set -o errexit -o pipefail # Exit on error
# Install yarn if it isn't already present
if [ ! -d $HOME/.yarn ]; then
wget https://yarnpkg.com/install.sh -O $TMPDIR/yarn-install.sh
chmod +x $TMPDIR/yarn-install.sh
bash $TMPDIR/yarn-install.sh --version 1.5.1
fi
mkdir -p $HOME/bin # Automatically in $PATH on workers
ln -fs $HOME/.yarn/bin/yarn $HOME/bin/yarn
yarn config set registry "https://registry.npmjs.org/"
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> $HOME/.npmrc
echo "registry=https://registry.npmjs.org/" >> $HOME/.npmrc
yarn install --ignore-engines --check-files --frozen-lockfile
post_build: |
# Only deploy if all tests have passed
if [[ "passed" != "$TDDIUM_BUILD_STATUS" ]]; then
echo "\$TDDIUM_BUILD_STATUS = $TDDIUM_BUILD_STATUS"
echo "Will only deploy on passed builds"
exit
fi
# Only deploy on 'node_8' profile
if [[ "node_8" != "$SOLANO_PROFILE_NAME" ]]; then
echo "Will only deploy on 'node_8' profile"
exit
fi
# fetch tags
git fetch origin 'refs/tags/*:refs/tags/*' -v
npm run codecov && npm run semantic-release
tests:
- yarn run prepublishOnly
cache:
key_paths:
- package.json
- yarn.lock # to freeze packages installed by yarn
save_paths:
- REPO/node_modules # Repo's "local" cache
- HOME/.yarn # Yarn's "global" cache