-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.travis.yml
98 lines (95 loc) · 5 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
language: generic
#env:
matrix:
allow_failures:
- env: TARGET_SYSTEM=OSX
include:
- os: linux
dist: trusty
compiler: g++
sudo: required
services: docker
env: TARGET_SYSTEM=Linux
before_script:
- travis_wait 120 sleep infinity & sudo docker pull photoflow/docker-centos7-gtk
- rm -rf appimage
- git clone https://github.com/aferrero2707/pf-build-appimage.git appimage
- sudo docker run -it -e USE_GTKMM3=OFF -e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e TRAVIS_COMMIT=${TRAVIS_COMMIT} -v $(pwd):/sources photoflow/docker-centos7-gtk bash /sources/appimage/mkappimage.sh
after_success:
- cd $TRAVIS_BUILD_DIR
- ls -lh
#- bash appimage/package-appimage.sh
- ls out/*
- wget -c https://github.com/aferrero2707/uploadtool/raw/master/remove.sh
- bash ./remove.sh "continuous" "PhotoFlow_git_${TRAVIS_BRANCH}_linux_" ".AppImage" > /dev/null
- bash ./remove.sh "continuous" "PhotoFlow_git_${TRAVIS_BRANCH}_linux_" ".zsync" > /dev/null
- wget -c https://github.com/aferrero2707/uploadtool/raw/master/upload_rotate.sh
- bash ./upload_rotate.sh "continuous" out/* > /dev/null
- os: linux
dist: trusty
compiler: g++
sudo: required
dist: trusty
env: TARGET_SYSTEM=Windows
before_script:
#- cd non_existent_dir
- pwd
- rm -rf windows && git clone https://github.com/aferrero2707/pf-build-win.git windows
#- sudo docker run -it -e "TRAVIS_BUILD_DIR=/sources" -e "TRAVIS_BRANCH=${TRAVIS_BRANCH}" -e "TRAVIS_COMMIT=${TRAVIS_COMMIT}" -v $(pwd):/sources photoflow/docker-buildenv-mingw bash -c /sources/windows/package-w64.sh
- sudo docker run -it -e "TRAVIS_BUILD_DIR=/sources" -e "TRAVIS_BRANCH=${TRAVIS_BRANCH}" -e "TRAVIS_COMMIT=${TRAVIS_COMMIT}" -v $(pwd):/sources photoflow/docker-buildenv-mingw-manjaro-wine bash -c /sources/windows/package-msys2.sh
- # check if zip file was successfully created
- # abort job with failure if not
- ls *.zip
after_success:
- cd $TRAVIS_BUILD_DIR
- pwd
- wget -c https://github.com/aferrero2707/uploadtool/raw/master/remove.sh
- bash ./remove.sh "continuous" "PhotoFlow_git_${TRAVIS_BRANCH}_w64_" ".zip" > /dev/null
#- bash ./remove.sh "continuous" "photoflow-w64-*${TRAVIS_BRANCH}-" ".zip"
#- wget -c https://github.com/aferrero2707/uploadtool/raw/master/upload.sh
- wget -c https://github.com/aferrero2707/uploadtool/raw/master/upload_rotate.sh
- bash ./upload_rotate.sh "continuous" PhotoFlow_*.zip > /dev/null
- os: osx
cache: ccache
osx_image: xcode7.3
env:
- TARGET_SYSTEM=OSX
PATH="$HOME/homebrew/bin:$PATH"
LD_LIBRARY_PATH="$HOME/homebrew/lib:$LD_LIBRARY_PATH"
LIBRARY_PATH="$HOME/homebrew/lib:$LIBRARY_PATH"
PYTHON=$HOME/homebrew/bin/python
PKG_CONFIG_PATH=$HOME/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH
JOBS="`sysctl -n hw.ncpu`"
MACOSX_DEPLOYMENT_TARGET=10.8
HOMEBREW_NO_AUTO_UPDATE=1
#PATH=$HOME/homebrew/opt/python/libexec/bin:$HOME/homebrew/bin:$PATH
#LD_LIBRARY_PATH=$HOME/homebrew/lib:$LD_LIBRARY_PATH
#PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
#JPEG=/usr/local/opt/mozjpeg
before_script:
- rm -rf osx
- git clone https://github.com/aferrero2707/pf-build-osx.git osx
- sudo mv /usr/local/bin /usr/local/bin_
- sudo mv /usr/local/lib /usr/local/lib_
- sudo mv /usr/local/opt /usr/local/opt_
- $TRAVIS_BUILD_DIR/osx/dep-install.sh 6
#- export PATH="/usr/local/opt/ccache/libexec:$PATH"
- cd $TRAVIS_BUILD_DIR
- mkdir -p build
- cd build
- cmake -DOCIO_ENABLED=ON -DBUNDLED_LENSFUN=OFF -DBUNDLED_LENSFUN_DB=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$HOME/homebrew ..
#- cmake -DBUNDLED_LENSFUN=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local ..
- make -j 3
- make install
- cd $TRAVIS_BUILD_DIR/osx
- ./package-photoflow-hb.sh
- wget -c https://github.com/aferrero2707/uploadtool/raw/master/remove.sh
- bash ./remove.sh "continuous" "PhotoFlow_git_${TRAVIS_BRANCH}_macos_" ".dmg" > /dev/null
#- wget -c https://github.com/aferrero2707/uploadtool/raw/master/upload_rotate.sh
- wget -c https://github.com/aferrero2707/uploadtool/raw/master/upload_rotate.sh
- bash ./upload_rotate.sh "continuous" $HOME/PhotoFlow_*.dmg > /dev/null
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
- /^(?i:unstable)$/