Skip to content

Commit

Permalink
Travis CI experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy committed Jul 22, 2017
1 parent 556ab90 commit 282e498
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
28 changes: 26 additions & 2 deletions .travis.yml
@@ -1,3 +1,27 @@
language: c
os: osx
script: ./configure && make && sudo make install && make test
matrix:
include:
- os: osx
osx_image: xcode8.3
- os: osx
osx_image: xcode7.3
- os: osx
osx_image: xcode6.4
before_install:
- sudo mv /usr/local /usr/local.old ; hash -r
script: "./configure && make && sudo make install && make test"
before_deploy:
- sudo mv /usr/local.old /usr/local ; hash -r
- sed -i "" "s/-v selfupdate/version/" portmgr/dmg/postflight
- sudo install portmgr/dmg/postflight /opt/local/
- sudo install src/*.tcl /opt/local/
- export OS_MAJOR=$(uname -r | cut -f 1 -d .)
- tar -cjf MacPorts-$TRAVIS_TAG-$OS_MAJOR.tar.bz2 /opt/local
deploy:
provider: releases
file: MacPorts-$TRAVIS_TAG-$OS_MAJOR.tar.bz2
skip_cleanup: true
on:
tags: true
api_key:
secure: Gzwpl6YAWfCRL3adYyCEQIfDTjeHZGP3UW9qC9sIYlywlTLsaZ8ZQgt3y8oSjXIFI2rxLa9ejMLz41qb8z3YooQAEGX+Pop6HQ8Nizo5eUt7EP5/mAgyTQDKWnF4ifU0+dOUnn0iZqp+0kwuaDJCEz5i3SbNokSq5FYd3VNVoWYkQ/TQTSI3blpK/wgVAq27WmlgVObuwnz5bnbjEiHEpQl0bIN+Zs6nhtj4s+VQDAGaSSmwtkq1Md9hcncdDayDoyt1GlK457sdhMDqqcFZgN/Bovnk40/MWpBkWJRBakKU3kuhWsWVudK/dLxANEvxlVjD/e1d+Yd11rCKLBCGgl3ZFxmXvgfM9L/YsUOM8wsAbBMiecFnPqxp8Ja02GrP6cuTYo776l/VbMzJDDF5A/OWmNxXNVhf/A8Hv0xkKzC77zZcuAqULqH0j/ERsw+Evo9yD0bozwYA/YCT1lCKES9h541CvR5le7576ivVz4MOCWunXSQeVJqy/9U5VwwxTx1L5/us/+4cyO9poaQ9qyM6l8B6Pyh+SBRPWSgQZDNy6Y/qFVKEBZTm9gLE8mqNZW10GZLi5rjNRsVW631C4Ix3hvSu4+mo6jQ4RYRHj3oft/i95Zdv4hJAgOCEcRXa5HRFA5RPSlWHeRFhP2DO9EerTX3EFWIZWbzn0htB9nM=
4 changes: 3 additions & 1 deletion src/macports1.0/macports.tcl
Expand Up @@ -1281,7 +1281,9 @@ proc macports::copy_xcode_plist {target_homedir} {
global macports::user_home macports::macportsuser
set user_plist "${user_home}/Library/Preferences/com.apple.dt.Xcode.plist"
set target_dir "${target_homedir}/Library/Preferences"
file delete -force "${target_dir}/com.apple.dt.Xcode.plist"
if {[file exists "${target_dir}/com.apple.dt.Xcode.plist"]} {
file delete -force "${target_dir}/com.apple.dt.Xcode.plist"
}
if {[file isfile $user_plist]} {
if {![file isdirectory $target_dir]} {
try -pass_signal {
Expand Down

0 comments on commit 282e498

Please sign in to comment.