Skip to content

Commit a834fd2

Browse files
committed
Deploying tarballs
1 parent 293fb90 commit a834fd2

File tree

4 files changed

+45
-124
lines changed

4 files changed

+45
-124
lines changed

.travis.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,40 @@ matrix:
44
osx_image: xcode9.3beta
55
env:
66
- MATRIX_EVAL=""
7+
78
before_install:
8-
- eval "${MATRIX_EVAL}"
9-
- brew update
10-
- brew bundle
9+
- eval "${MATRIX_EVAL}"
10+
- brew update
11+
- brew bundle
12+
- env
13+
14+
install:
15+
- rvm install ruby --latest
16+
- gem install dropbox-deployment
17+
- git clone https://github.com/kristovatlas/osx-config-check
18+
- cd osx-config-check ; python2.7 app.py --report-only --skip-sudo-checks ; cd ..
19+
1120
script:
12-
- python3 build4mac.py -p B37 -q Qt5Brew -c
13-
- source filter-clang.sh; python3 build4mac.py -p B37 -q Qt5Brew | filter
14-
- python3 build4mac.py -p B37 -q Qt5Brew -y
21+
- python3 build4mac.py -p B37 -q Qt5Brew -c
22+
- source filter-clang.sh; python3 build4mac.py -p B37 -q Qt5Brew | filter
23+
- python3 build4mac.py -p B37 -q Qt5Brew -y
24+
- qt5.pkg.macos-HighSierra-release/klayout.app/Contents/MacOS/klayout -b -r test-pylib-script.py
25+
- cd qt5.build.macos-HighSierra-release
26+
- ln -s klayout.app/Contents/MacOS/klayout klayout
27+
- export TESTTMP=testtmp # path to a directory that will hold temporary data (will be created)
28+
- export TESTSRC=.. # path to the source directory
29+
- ./ut_runner -h
30+
- ./ut_runner -s || true
31+
- cd ..
32+
- export gitcommit=$(git rev-parse --short HEAD)
33+
- mkdir deploy
34+
- tar czf "deploy/qt5.pkg.macos-HighSierra-release-$gitcommit.tar.gz" qt5.pkg.macos-HighSierra-release
35+
36+
after_success:
37+
- dropbox-deployment
1538

1639
deploy:
17-
provider: s3
40+
- provider: s3
1841
access_key_id: AKIAIV2JJIENURARWFUQ
1942
secret_access_key:
2043
secure: LdxO80/boYFIa/6XuF1gi2V7vtoDFro+ImIcmf8ARKddYxjlLp31mVDt1ZezeYvjPt3T0KvDErMtez7Ea8yUPXayxLycAb5nEhP6QMTuW3QcSTllsG3Bpz1b1zCx4LiYWzYbmgqHru1kh3WhqQbKAgq4Xl5zIIE2yvWlGvpUf9mP586KGe5HJl6hbAJI8XdkJTjp48jHanKIUlxDDPrxon1i1GD+8PSl2JEvggRpp+mSaA5dJJJRYPNFlQn0T1TuHkRBErLqHYJ8qTSee72jMbTOVOPxuMy4KKdZt6bpDJiJccH2FJ87+qyXM/8dDQnlpWPVOgQhklFBMUmGkooVxfjphVLmBRNgkfohBC6DmKeIk/Os+TRvXjuL/SMwQ17jwKSRw/QPrIGwvGb2GdZ/jQCV0WWw3x/N8xlXZ2EhkLC8lznVuaf++CCC3qm0+ejojRFz7uFyqDvq9HPXHzllZTbTMI+6+QE5Gpi1s513iio/nRPYCLoyFe5144VfnlJCXxsC11jrous2HWo2YFJGqj0ipJdnit/Kolq+Shs2gTiGz0yb7f/JKsyA/N0Bz4npKlt7O1MmXyFjDJCfSn2WyfXjSYiyKu3fjkbf4e4AK5qsR2BcNlJXl6Z3ACLIS6OinRPFLZyCS24yQ0eNIR1Q5Xvg88vTUbyhDc2QsYpyP1Y=
@@ -23,4 +46,5 @@ deploy:
2346
skip_cleanup: true
2447
on:
2548
repo: dwang/klayout
26-
branch: travis-ci
49+
branch: travis-ci-pr
50+

dropbox-deployment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
deploy:
2+
dropbox_path: /Builds/klayout # The path to the folder on Dropbox where the files will go
3+
artifacts_path: deploy # can be a single file, or a path
4+
debug: true # if you want to see more logs

test-pydeploy.py

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

test-pylib-script.py

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import site; print(site.getsitepackages())
22

3-
import pip
4-
installed_packages = pip.get_installed_distributions()
5-
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
6-
for i in installed_packages])
7-
print(installed_packages_list)
8-
93
def get_pip_main():
104
import pip
115
# check if pip version is new:
@@ -14,11 +8,18 @@ def get_pip_main():
148
else:
159
from pip import main
1610
return main
17-
11+
12+
import sys
13+
print("Executing from: ", sys.executable)
1814
print("-------------")
1915

20-
pipmain = get_pip_main()
16+
import os
17+
print("Environment variables:")
18+
for variable, value in os.environ.items():
19+
print(variable, ":", value)
2120

21+
pipmain = get_pip_main()
22+
print("-------------")
2223
if pipmain(['install', '--upgrade', 'numpy']) > 0:
2324
exit(1)
2425
print("-------------")
@@ -27,13 +28,3 @@ def get_pip_main():
2728
print("Importing numpy")
2829
import numpy
2930
print("-------------")
30-
31-
32-
import sys
33-
print("Executing from: ", sys.executable)
34-
print("-------------")
35-
36-
import os
37-
print("Environment variables:")
38-
for variable, value in os.environ.items():
39-
print(variable, ":", value)

0 commit comments

Comments
 (0)