forked from OctaDist/OctaDist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (48 loc) · 1.39 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: python
group: travis_latest
sudo: yes
dist: jammy
# Needs graphical environment - enable xvfb
services:
- xvfb
branches:
only:
- master
python:
- "3.7"
- "3.8"
- "3.9"
install:
- pip3 install pip --upgrade
- pip3 install pyinstaller
- pip3 install -r requirements.txt
before_script:
- chmod +x octadist_gui_timeout.sh
script:
- echo "============================="
- echo "Install OctaDist via setup.py"
- echo "============================="
- python3 setup.py sdist bdist_wheel bdist_egg
- python3 setup.py install
- python3 setup.py test
- echo ""
- echo "Test OctaDist CLI"
- octadist_cli --version
- octadist_cli -i example-input/Perfect-octahedron.xyz
- octadist_cli -i example-input/Perfect-octahedron.xyz -o
- octadist_cli -i example-input/Fe-distorted-octa.xyz
- octadist_cli -i example-input/Fe-distorted-octa.xyz -o
- echo ""
- echo "Test compiling OctaDist"
- echo "======================================"
- echo "Compile source code to executable file"
- echo "======================================"
- pyinstaller -F -w --version-file=version.txt -n OctaDist_EXE octadist/main.py
- echo ""
- echo "================="
- echo "Test OctaDist GUI"
- echo "================="
- bash octadist_gui_timeout.sh
- echo "========="
- echo "Test Done"
- echo "========="