Browse code

github: Migrate from Travis CI to GitHub Actions.

Jose Fonseca authored on 21/11/2020 11:34:37
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,36 +0,0 @@
1
-sudo: required
2
-dist: bionic
3
-
4
-language: generic
5
-
6
-addons:
7
-  apt:
8
-    packages:
9
-    - gir1.2-gtk-3.0
10
-    - python3-gi
11
-    - python3-gi-cairo
12
-    - python3-numpy
13
-    - graphviz
14
-    - xvfb
15
-    - twine
16
-
17
-before_install:
18
-- dot -V
19
-- /usr/bin/python3 --version
20
-
21
-script:
22
-- cd tests
23
-- LANG=C xvfb-run -a -s '-screen 0 1024x768x24' /usr/bin/python3 ../test.py *.dot graphs/*.gv
24
-- cd ..
25
-
26
-# https://docs.travis-ci.com/user/deployment/pypi/
27
-deploy:
28
-  provider: pypi
29
-  user: jrfonseca
30
-  password:
31
-    secure: HAPllYFYXrSl5IPMIoWHCTuk6rxxqoHDZWudtctiVxBGlaBftya08nFi+jfWHZOE3cofoqnkXUV+9qtMG9aLW8wVtZeABy33KQe2MPppn3dNFN/UKKskXBsFpSeFy8xAwwcWou1okrg9kFfZpxwb272e0MHrtMsXjNmpodrUAhM=
32
-  on:
33
-    tags: true
34
-    distributions: sdist
35
-    repo: jrfonseca/xdot.py
36
-  skip_upload_docs: true
Browse code

Edge highlight along curve (#82)

- changed Edge to yield Jump everywhere along the curve
- changed Edge and Graph such that edges are highlighted only when directly connected to element under cursor
- fixed issue related to non-Bezier shapes in Edge
- replaced precomputation of points by distance to curve computation
- added requirement numpy to travis configuration
- added method get_smallest_distance to Shape
- moved Edge._get_distance to BezierShape.get_smallest_distance
- changed BezierShape.get_smallest_distance to include endpoints

notEvil authored on 17/08/2020 12:34:02 • GitHub committed on 17/08/2020 12:34:02
Showing 1 changed files
... ...
@@ -9,6 +9,7 @@ addons:
9 9
     - gir1.2-gtk-3.0
10 10
     - python3-gi
11 11
     - python3-gi-cairo
12
+    - python3-numpy
12 13
     - graphviz
13 14
     - xvfb
14 15
     - twine
Browse code

travis: Upgrade to Ubuntu 19.04.

Jose Fonseca authored on 09/01/2020 17:08:40
Showing 1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 sudo: required
2
-dist: xenial
2
+dist: bionic
3 3
 
4 4
 language: generic
5 5
 
Browse code

travis: Upgrade to Xenial.

Jose Fonseca authored on 28/12/2018 16:38:24
Showing 1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 sudo: required
2
-dist: trusty
2
+dist: xenial
3 3
 
4 4
 language: generic
5 5
 
Browse code

Add twine package.

Jose Fonseca authored on 11/01/2018 11:08:37
Showing 1 changed files
... ...
@@ -11,6 +11,7 @@ addons:
11 11
     - python3-gi-cairo
12 12
     - graphviz
13 13
     - xvfb
14
+    - twine
14 15
 
15 16
 before_install:
16 17
 - dot -V
Browse code

travis: Switch to generic language.

As we want to use system python.

Jose Fonseca authored on 05/08/2017 15:17:32
Showing 1 changed files
... ...
@@ -1,14 +1,7 @@
1
-# Use trusty for newer graphviz
2 1
 sudo: required
3
-# https://blog.travis-ci.com/2017-06-21-trusty-updates-2017-Q2-launch
4
-group: deprecated-2017Q2
5 2
 dist: trusty
6 3
 
7
-language: python
8
-
9
-python:
10
-# https://github.com/travis-ci/travis-ci/issues/2219
11
-- "3.4_with_system_site_packages"
4
+language: generic
12 5
 
13 6
 addons:
14 7
   apt:
... ...
@@ -21,10 +14,11 @@ addons:
21 14
 
22 15
 before_install:
23 16
 - dot -V
17
+- /usr/bin/python3 --version
24 18
 
25 19
 script:
26 20
 - cd tests
27
-- LANG=C xvfb-run -a -s '-screen 0 1024x768x24' python ../test.py *.dot graphs/*.gv
21
+- LANG=C xvfb-run -a -s '-screen 0 1024x768x24' /usr/bin/python3 ../test.py *.dot graphs/*.gv
28 22
 - cd ..
29 23
 
30 24
 # https://docs.travis-ci.com/user/deployment/pypi/
Browse code

travis: Revert to deprecated environment.

It seems system packages can't be found when using
"3.4_with_system_site_packages" python.

Possibly related to https://github.com/travis-ci/travis-ci/issues/8048

Jose Fonseca authored on 06/07/2017 20:06:19
Showing 1 changed files
... ...
@@ -1,5 +1,7 @@
1 1
 # Use trusty for newer graphviz
2 2
 sudo: required
3
+# https://blog.travis-ci.com/2017-06-21-trusty-updates-2017-Q2-launch
4
+group: deprecated-2017Q2
3 5
 dist: trusty
4 6
 
5 7
 language: python
Browse code

Ensure DOT files are read and passed as bytes.

Things just happened to work when locale was set to UTF-8, but would
fail otherwise. In particular it would fail on Windows where text files
don't default to UTF-8.

Fixes https://github.com/jrfonseca/xdot.py/issues/46

Jose Fonseca authored on 06/07/2017 16:18:31
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@ before_install:
22 22
 
23 23
 script:
24 24
 - cd tests
25
-- xvfb-run -a -s '-screen 0 1024x768x24' python ../test.py *.dot graphs/*.gv
25
+- LANG=C xvfb-run -a -s '-screen 0 1024x768x24' python ../test.py *.dot graphs/*.gv
26 26
 - cd ..
27 27
 
28 28
 # https://docs.travis-ci.com/user/deployment/pypi/
Browse code

travis: Return to top dir before deployment.

Jose Fonseca authored on 23/05/2017 11:08:23
Showing 1 changed files
... ...
@@ -23,6 +23,7 @@ before_install:
23 23
 script:
24 24
 - cd tests
25 25
 - xvfb-run -a -s '-screen 0 1024x768x24' python ../test.py *.dot graphs/*.gv
26
+- cd ..
26 27
 
27 28
 # https://docs.travis-ci.com/user/deployment/pypi/
28 29
 deploy:
... ...
@@ -34,5 +35,4 @@ deploy:
34 35
     tags: true
35 36
     distributions: sdist
36 37
     repo: jrfonseca/xdot.py
37
-  skip_cleanup: true
38 38
   skip_upload_docs: true
Browse code

travis: Skip deploy cleanup and doc upload.

Jose Fonseca authored on 23/05/2017 10:17:04
Showing 1 changed files
... ...
@@ -34,3 +34,5 @@ deploy:
34 34
     tags: true
35 35
     distributions: sdist
36 36
     repo: jrfonseca/xdot.py
37
+  skip_cleanup: true
38
+  skip_upload_docs: true
Browse code

travis: Change password.

Jose Fonseca authored on 23/05/2017 10:05:35
Showing 1 changed files
... ...
@@ -29,7 +29,7 @@ deploy:
29 29
   provider: pypi
30 30
   user: jrfonseca
31 31
   password:
32
-    secure: WJOfZYkpzmG62sHgoBb66TDGeFHP/KNGrwl/ul8Q22SdFCr5u3gpmQ8bHGgV3fXk/onuDPC3gJxcLpH5+MeZEHiS+pL+gP5XbtiEGOXPe8N2I3eIffO4gHnx1naC5stdk8v44SAY/9pw+CGBOHDJXWMeMDM/QEWo7bpHsZkpRZI=
32
+    secure: HAPllYFYXrSl5IPMIoWHCTuk6rxxqoHDZWudtctiVxBGlaBftya08nFi+jfWHZOE3cofoqnkXUV+9qtMG9aLW8wVtZeABy33KQe2MPppn3dNFN/UKKskXBsFpSeFy8xAwwcWou1okrg9kFfZpxwb272e0MHrtMsXjNmpodrUAhM=
33 33
   on:
34 34
     tags: true
35 35
     distributions: sdist
Browse code

travis: Automatically upload releases to PyPI.

Jose Fonseca authored on 23/05/2017 09:50:48
Showing 1 changed files
... ...
@@ -23,3 +23,14 @@ before_install:
23 23
 script:
24 24
 - cd tests
25 25
 - xvfb-run -a -s '-screen 0 1024x768x24' python ../test.py *.dot graphs/*.gv
26
+
27
+# https://docs.travis-ci.com/user/deployment/pypi/
28
+deploy:
29
+  provider: pypi
30
+  user: jrfonseca
31
+  password:
32
+    secure: WJOfZYkpzmG62sHgoBb66TDGeFHP/KNGrwl/ul8Q22SdFCr5u3gpmQ8bHGgV3fXk/onuDPC3gJxcLpH5+MeZEHiS+pL+gP5XbtiEGOXPe8N2I3eIffO4gHnx1naC5stdk8v44SAY/9pw+CGBOHDJXWMeMDM/QEWo7bpHsZkpRZI=
33
+  on:
34
+    tags: true
35
+    distributions: sdist
36
+    repo: jrfonseca/xdot.py
Browse code

travis: Travis integration.

Jose Fonseca authored on 14/02/2016 00:15:24
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+# Use trusty for newer graphviz
2
+sudo: required
3
+dist: trusty
4
+
5
+language: python
6
+
7
+python:
8
+# https://github.com/travis-ci/travis-ci/issues/2219
9
+- "3.4_with_system_site_packages"
10
+
11
+addons:
12
+  apt:
13
+    packages:
14
+    - gir1.2-gtk-3.0
15
+    - python3-gi
16
+    - python3-gi-cairo
17
+    - graphviz
18
+    - xvfb
19
+
20
+before_install:
21
+- dot -V
22
+
23
+script:
24
+- cd tests
25
+- xvfb-run -a -s '-screen 0 1024x768x24' python ../test.py *.dot graphs/*.gv