Skip to content

Commit 0d479d0

Browse files
authored
Merge branch 'master' into setup_improve
2 parents e7c2a9a + 5e931b5 commit 0d479d0

File tree

141 files changed

+25298
-1886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+25298
-1886
lines changed

.gitattributes

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If applicable, add screenshots to help explain your problem.
4747
**Environment (please complete the following information):**
4848
- OS: [e.g. linux mint]
4949
- Version [e.g. 18]
50-
- COMPSs version [e.g. 2.7]
50+
- COMPSs version [e.g. 2.8]
5151
- Dislib version [e.g. 0.1.0]
5252
- Java / Python versions [e.g. java 8 / python 3.6.4]
5353

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ compss/runtime/config/xml/projects/src/main/java/es/bsc/compss/types/project/jax
88
compss/runtime/config/xml/resources/src/main/java/META-INF/
99
compss/runtime/config/xml/resources/src/main/java/es/bsc/compss/types/resources/jaxb/
1010

11+
# Ignore virtual environment files
12+
venv/
13+
1114
# Ignore eclipse files
1215
.classpath
1316
.settings/
@@ -109,6 +112,7 @@ target/
109112
*compss*.out
110113
*compss*.err
111114

115+
112116
# ========== C & C++ ignores =================
113117
# Prerequisites
114118
*.d
@@ -171,3 +175,5 @@ dkms.conf
171175
# Ignore log files
172176
*.log
173177

178+
# Ignore virtual environments
179+
venv

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ MAINTAINER COMPSs Support <[email protected]>
44
COPY . dislib/
55

66
ENV PYTHONPATH=$PYTHONPATH:/dislib
7+
ENV LC_ALL=C.UTF-8
8+
RUN python3 -m pip install --upgrade -r /dislib/requirements.txt
9+
10+
ENV COMPSS_LOAD_SOURCE false
711

812
# Expose SSH port and run SSHD
913
EXPOSE 22

Jenkinsfile

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
def setGithubCommitStatus(state, description) {
2+
withEnv(["STATE=$state", "DESCRIPTION=$description"]) {
3+
withCredentials([string(credentialsId: 'Compsupescalar Github secret token', variable: 'GITHUB_TOKEN')]) {
4+
sh 'curl -H "Authorization: token $GITHUB_TOKEN" -X POST \
5+
--data "{\\"state\\": \\"$STATE\\", \\"description\\": \\"$DESCRIPTION\\", \
6+
\\"target_url\\": \\"${BUILD_URL}\\", \\"context\\": \\"continuous-integration/jenkins\\" }" \
7+
--url https://api.github.com/repos/bsc-wdc/dislib/statuses/${GIT_COMMIT}'
8+
}
9+
}
10+
}
11+
12+
pipeline {
13+
options {
14+
timeout(time: 5, unit: 'HOURS')
15+
}
16+
agent {
17+
node {
18+
label 'Docker'
19+
}
20+
}
21+
stages {
22+
stage('build') {
23+
steps {
24+
setGithubCommitStatus('pending', 'The Jenkins build is in progress')
25+
sh 'git pull origin'
26+
sh 'docker rm -f dislib &> /dev/null || true'
27+
sh 'docker rmi -f bscwdc/dislib &> /dev/null || true'
28+
sh 'docker build --pull --no-cache --tag bscwdc/dislib .'
29+
sh '''#!/bin/bash
30+
docker run $(bash <(curl -s https://codecov.io/env)) -d --name dislib bscwdc/dislib'''
31+
}
32+
}
33+
stage('test') {
34+
steps {
35+
sh 'docker exec dislib /dislib/run_ci_checks.sh'
36+
}
37+
}
38+
stage('deploy') {
39+
when {
40+
branch 'master'
41+
}
42+
steps {
43+
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId:'dockerhub_compss', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
44+
sh 'docker login -u "$USERNAME" -p "$PASSWORD"'
45+
}
46+
sh 'docker tag bscwdc/dislib bscwdc/dislib:latest'
47+
sh 'docker push bscwdc/dislib:latest'
48+
}
49+
}
50+
}
51+
post{
52+
always {
53+
sh 'docker exec dislib /dislib/bin/print_tests_logs.sh'
54+
sh 'docker images'
55+
sh 'docker rm -f dislib &> /dev/null || true'
56+
sh 'docker rmi -f bscwdc/dislib &> /dev/null || true'
57+
}
58+
success {
59+
setGithubCommitStatus('success', 'Build Successful')
60+
}
61+
failure {
62+
setGithubCommitStatus('failure', 'Build Failure')
63+
}
64+
}
65+
}

QUICKSTART.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ready-to-use [docker image](#using-docker).
1010

1111
dislib currently requires:
1212

13-
* PyCOMPSs >= 2.7
13+
* PyCOMPSs >= 2.8
1414
* Scikit-learn >= 0.19.1
1515
* Scipy >= 1.0.0
1616
* NumPy >= 1.15.4
@@ -22,9 +22,9 @@ numpydoc >= 0.8.0 is requried to build the documentation.
2222
#### Installation steps
2323

2424
1. Check which PyCOMPSs version to install.
25-
* Latest dislib release requires **PyCOMPSs 2.7** or greater (check [here](https://github.com/bsc-wdc/dislib/releases) for information about other releases).
25+
* Latest dislib release requires **PyCOMPSs 2.8** or greater (check [here](https://github.com/bsc-wdc/dislib/releases) for information about other releases).
2626

27-
2. Install PyCOMPSs following these [instructions](https://compss-doc.readthedocs.io/en/2.7/Sections/01_Installation.html).
27+
2. Install PyCOMPSs following these [instructions](https://compss-doc.readthedocs.io/en/stable/Sections/01_Installation.html).
2828

2929
3. Install the latest dislib version with ``pip3 install dislib``.
3030
* **IMPORTANT:** dislib requires the ``pycompss`` Python module. However, this command will **NOT** install the module automatically. The module should be available after manually installing PyCOMPSs following the instructions in step 2. For more information on this, see [here](https://github.com/bsc-wdc/dislib/issues/190).

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
   <img src="https://readthedocs.org/projects/dislib/badge/?version=stable"
1111
alt="Documentation Status"/>
1212
</a>
13-
<a href="https://travis-ci.org/bsc-wdc/dislib">
14-
<img src="https://travis-ci.org/bsc-wdc/dislib.svg?branch=master"
13+
<a href="https://github.com/bsc-wdc/dislib">
14+
<img src="https://compss.bsc.es/jenkins/buildStatus/icon?job=dislib_multibranch%2Fmaster"
1515
alt="Build Status">
1616
</a>
1717
<a href="https://codecov.io/gh/bsc-wdc/dislib">
@@ -22,7 +22,7 @@
2222
<img src="https://badge.fury.io/py/dislib.svg" alt="PyPI version" height="18">
2323
</a>
2424
<a href="https://badge.fury.io/py/dislib">
25-
<img src="https://img.shields.io/badge/python-3.5-blue.svg" alt="Python version" height="18">
25+
<img src="https://img.shields.io/badge/python-3.6-blue.svg" alt="Python version" height="18">
2626
</a>
2727
</p>
2828

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.4
1+
0.7.0

codecov.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "90...100"
8+
9+
parsers:
10+
gcov:
11+
branch_detection:
12+
conditional: yes
13+
loop: yes
14+
method: no
15+
macro: no
16+
17+
comment:
18+
layout: "reach,diff,flags,files,footer"
19+
behavior: default
20+
require_changes: no

0 commit comments

Comments
 (0)