Skip to content

Commit

Permalink
Add travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Apr 14, 2018
1 parent 668ae44 commit 4d7a14a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Reference: https://andrewdolby.com/articles/2016/continuous-deployment-for-qt-applications/

os: osx

language: cpp

matrix:
fast_finish: true
include:
- os: osx
compiler: clang
osx_image: xcode8

install:
- brew update
- brew reinstall cgal
- brew reinstall qt5
- wget -O installrust.sh https://sh.rustup.rs
- sh installrust.sh -y
- export PATH="$HOME/.cargo/bin:/usr/local/opt/qt/bin:$(brew --prefix)/bin:$PATH"

script:
- git clone https://github.com/huxingyi/meshlite.git
- cd meshlite
- cargo build --release
- cd ../
- cp meshlite/include/meshlite.h thirdparty/meshlite/meshlite.h
- cp meshlite/target/release/libmeshlite.dylib thirdparty/meshlite/libmeshlite.dylib
- qmake -config release
- make
- mv dust3d.app dust3d-unstable.app
- macdeployqt dust3d-unstable.app -dmg

before_deploy:
- git config --local user.name "huxingyi"
- git config --local user.email "huxingyi@msn.com"
- git tag "dust3d-unstable"

deploy:
- provider: releases
api_key:
secure: ZoWp2r5I3tq6QjVJZBpZUwch0PBKV2GWqsaKGKc/Ntic28S2aNecF91Esx7Ebt/aUxVmooONvkSF0DvTsf9nUSxgRUhGI9kaPC3Ove4AGJjMUfSzdVSmv7DRFLWfZx/g4e0SxZ7QShiZQ4y9t08wMUZaCIt6hH46oe+FY8hawxnQ7BZMkdQDL7re2BO0XixBMzTO3ZeLJIPreFs9K/bCUwsmsC++EKf5lRkxQDkBPgryumQuKB//4D8NIsnfmjrUYH4mdCRIezIiiafFXiWSeYO+iuBtme/PH3V7c9npNCp4qbYIi0YwfPeLMS+sDngqWSmn/KFaXhPeS2h9z2z/dHf9C59kQ2Z83hdAujrX66lnrwL5le511KUpPAcH4z/DQpLMYn3zvac9dZVkRt4Ze+8Mw8UvdzNKUp0OafyeYTF85DoTP8dZW1pDMTdTSOm8u9xuPx64qX1D6os0I1mK8dTyQvcDYoKlZ7/V7nD2Xm0+p1LsRx4+K0BQF9PWytT2u0I8Tx9RUcy3p6vMS7vrYtgFvuW7sLKIvgkP/n2PvHRmUcTCD7SdFE8U7nwqEAyPXg5F2jO4CxrLzkU4R2OpPSh30+gE3TF3DtyldFdAk+RIrKtLu3iW1dek0YgtkF+zLGMVAWzTjkJhSRk8bzeyhdGwGpjfnJq1QstHknZB/iA=
file:
- dust3d-unstable.dmg
overwrite: true
skip_cleanup: true
on:
tags: false
condition: $TRAVIS_OS_NAME = osx
branches:
only:
- master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![appveyor status](https://ci.appveyor.com/api/projects/status/github/huxingyi/dust3d?branch=master&svg=true)
![appveyor status](https://ci.appveyor.com/api/projects/status/github/huxingyi/dust3d?branch=master&svg=true) ![travis status](https://travis-ci.org/huxingyi/dust3d.svg?branch=master)

WIP... COMMING SOON

Expand Down

0 comments on commit 4d7a14a

Please sign in to comment.