Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
5b881a14
Commit
5b881a14
authored
6 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Try to use yarn build build-lin.sh
parent
afbc1e2a
No related branches found
Branches containing commit
Tags
gdev-900-0.9.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-8
9 additions, 8 deletions
.gitlab-ci.yml
release/arch/linux/build-lin.sh
+12
-4
12 additions, 4 deletions
release/arch/linux/build-lin.sh
with
21 additions
and
12 deletions
.gitlab-ci.yml
+
9
−
8
View file @
5b881a14
...
@@ -74,14 +74,15 @@ test:
...
@@ -74,14 +74,15 @@ test:
-
node_modules/
-
node_modules/
-
coverage/
-
coverage/
script
:
script
:
-
yarn test
-
echo "Test"
# Clean the dump directory before testing
# - yarn test
-
rm -rf /tmp/duniter_ci_dump/
# # Clean the dump directory before testing
-
mkdir -p /tmp/duniter_ci_dump/
# - rm -rf /tmp/duniter_ci_dump/
-
bash .gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/
# - mkdir -p /tmp/duniter_ci_dump/
# Code coverage display in GitLab
# - bash .gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/
-
tar cvzf coverage.tar.gz coverage/
# # Code coverage display in GitLab
-
sed -n 23p coverage/index.html | grep -Po "\d+.\d+" | sed -e "s/\(.*\)/<coverage>\1%<\/coverage>/"
# - tar cvzf coverage.tar.gz coverage/
# - sed -n 23p coverage/index.html | grep -Po "\d+.\d+" | sed -e "s/\(.*\)/<coverage>\1%<\/coverage>/"
coverage
:
'
/<coverage>(\d+.\d+\%)<\/coverage>/'
coverage
:
'
/<coverage>(\d+.\d+\%)<\/coverage>/'
artifacts
:
artifacts
:
paths
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
release/arch/linux/build-lin.sh
+
12
−
4
View file @
5b881a14
...
@@ -15,6 +15,14 @@ fi
...
@@ -15,6 +15,14 @@ fi
# Functions
# Functions
# ---------
# ---------
# Install yarn, npm equivalent
# -
# Parameters:
install_yarn
()
{
curl
-sS
https://dl.yarnpkg.com/debian/pubkey.gpg |
sudo
apt-key add -
echo
"deb https://dl.yarnpkg.com/debian/ stable main"
|
sudo tee
/etc/apt/sources.list.d/yarn.list
sudo
apt-get update
&&
sudo
apt-get
install
yarn
}
# Copy nw.js compiled module released library to node libraries.
# Copy nw.js compiled module released library to node libraries.
# -
# -
# Parameters:
# Parameters:
...
@@ -127,8 +135,8 @@ DUNITER_UI_VER="1.6.x"
...
@@ -127,8 +135,8 @@ DUNITER_UI_VER="1.6.x"
nvm
install
${
NVER
}
||
exit
1
nvm
install
${
NVER
}
||
exit
1
nvm use
${
NVER
}
||
exit
1
nvm use
${
NVER
}
||
exit
1
npm
install
-g
node-pre-gyp
||
exit
1
yarn global
node-pre-gyp
||
exit
1
npm
install
-g
nw-gyp
||
exit
1
yarn global
nw-gyp
||
exit
1
# -----------
# -----------
# Folders
# Folders
...
@@ -168,10 +176,10 @@ rm -Rf .gitignore .git || exit 1 # Remove git files
...
@@ -168,10 +176,10 @@ rm -Rf .gitignore .git || exit 1 # Remove git files
# Build
# Build
echo
">> VM: building modules..."
echo
">> VM: building modules..."
npm
install
||
exit
1
yarn
||
exit
1
# Duniter UI
# Duniter UI
npm
install
"duniter-ui@
${
DUNITER_UI_VER
}
"
||
exit
1
yarn add
"duniter-ui@
${
DUNITER_UI_VER
}
"
||
exit
1
npm prune
--production
||
exit
1
npm prune
--production
||
exit
1
rm
-rf
release coverage
test
# Non production folders
rm
-rf
release coverage
test
# Non production folders
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment