Skip to content

Commit 1b8583f

Browse files
committed
Change jenkins script to package script
Take the useful part of the jenkins script and put it in a script that makes a package with the git hashes as its version.
1 parent cc5911b commit 1b8583f

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
#!/bin/bash
22

3-
set -e
4-
5-
export NVM_DIR="$HOME/.nvm"
6-
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
7-
nvm use 10
3+
# Runs package.sh setting the version to git hashes of the riot-web,
4+
# react-sdk & js-sdk checkouts, for the case where these dependencies
5+
# are git checkouts.
86

7+
set -e
98
set -x
109

11-
# check out corresponding branches of dependencies.
12-
# clone the deps with depth 1: we know we will only ever need that one commit.
13-
`dirname $0`/fetch-develop.deps.sh --depth 1
14-
15-
yarn install
16-
17-
# run the mocha tests
18-
yarn test
19-
20-
# run eslint
21-
yarn lintall -- -f checkstyle -o eslint.xml || true
22-
2310
rm dist/riot-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
2411

2512
# Since the deps are fetched from git, we can rev-parse

0 commit comments

Comments
 (0)