Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
d66f4c0f
Commit
d66f4c0f
authored
Sep 20, 2022
by
BO ZHANG
🏀
Browse files
added jenkins build script
parent
4e75d4d6
Pipeline
#131
passed with stages
in 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
pipelines/build.sh
0 → 100644
View file @
d66f4c0f
#!/bin/bash
echo
"===================== prepare for installation ====================="
whoami
uname
-a
pwd
ls
-a
export
CSST_SIMS_C3
=
"/nfsdata/share/csst_simulation_data/Cycle-3-SimuData/"
export
CSST_SIMS_C5_2
=
"/nfsdata/share/csst_simulation_data/Cycle-5-SimuData/"
which python
source
/home/csstpipeline/anaconda3/bin/activate
which python
which pip
python
--version
echo
"===================== isntall requirements ====================="
pip
install
-r
requirements.txt
echo
"===================== install package ====================="
sh install_local.sh
echo
"===================== show package info ====================="
pip show
$project
echo
"===================== download code style tests ====================="
curl https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/test_codestyle.sh
coverage run
-m
pytest
echo
"===================== make coverage ====================="
coverage report
coverage html
# zip -q -r htmlcov.zip htmlcov
echo
"===================== importability ====================="
python
-c
"from
$project
.top_level_interface import *"
echo
"===================== POST BUILD BELOW ====================="
# In Jenkins:
#!/bin/bash
#sh -c "$(curl -fsSL https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/build.sh)"
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment