Skip to content

Commit

Permalink
Update to Julia 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenHertz committed Aug 20, 2018
1 parent c7922fc commit d2cbd94
Show file tree
Hide file tree
Showing 9 changed files with 339 additions and 351 deletions.
28 changes: 12 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,28 @@ os:
- linux
- osx
julia:
- 0.6
- 0.7
- 1.0
- nightly
matrix:
allow_failures:
- julia: nightly
notifications:
email: false
git:
depth: 99999999

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
#matrix:
# allow_failures:
# - julia: nightly

## uncomment and modify the following lines to manually install system packages
#addons:
# apt: # apt-get for linux
# packages:
# - gfortran
addons:
apt: # apt-get for linux
packages:
- libimage-exiftool-perl
#before_script: # homebrew for mac
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi

## uncomment the following lines to override the default test script
#script:
# - julia -e 'Pkg.clone(pwd()); Pkg.build("PhotoBackup"); Pkg.test("PhotoBackup"; coverage=true)'
# - julia -e 'Pkg.clone(pwd()); Pkg.build("PhotoOrganizer"); Pkg.test("PhotoOrganizer"; coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("PhotoBackup")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
- julia -e 'cd(Pkg.dir("PhotoOrganizer")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("PhotoBackup")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e 'cd(Pkg.dir("PhotoOrganizer")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
7 changes: 7 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name = "PhotoOrganizer"
uuid = "364877dc-a3fe-11e8-36b1-6bc00cc37783"
authors = ["Glen Hertz <[email protected]>"]
version = "0.1.0"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# OrganizePhotos
# PhotoOrganizer

[![Build Status](https://travis-ci.org/GlenHertz/OrganizePhotos.jl.svg?branch=master)](https://travis-ci.org/GlenHertz/OrganizePhotos.jl)
[![Build Status](https://travis-ci.org/GlenHertz/PhotoOrganizer.jl.svg?branch=master)](https://travis-ci.org/GlenHertz/PhotoOrganizer.jl)

[![Coverage Status](https://coveralls.io/repos/GlenHertz/OrganizePhotos.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/GlenHertz/OrganizePhotos.jl?branch=master)
[![Coverage Status](https://coveralls.io/repos/GlenHertz/PhotoOrganizer.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/GlenHertz/PhotoOrganizer.jl?branch=master)

[![codecov.io](http://codecov.io/github/GlenHertz/OrganizePhotos.jl/coverage.svg?branch=master)](http://codecov.io/github/GlenHertz/OrganizePhotos.jl?branch=master)
[![codecov.io](http://codecov.io/github/GlenHertz/PhotoOrganizer.jl/coverage.svg?branch=master)](http://codecov.io/github/GlenHertz/PhotoOrganizer.jl?branch=master)

OrganizePhotos is designed to organize a photo archive into a fixed directory structure (since manually managing photos is a waste of time).
PhotoOrganizer is designed to organize photos (and videos) into a fixed directory structure archive (since manually managing photos is a waste of time).

# Usage:

backup_photos(src_dirs, dst_root, keep_years_old, dry_run)
organize_photos(src_dirs, dst_root, rm_src, dry_run)

Move and rename photos in `src_dirs` source directories to an organized `dst_root` destination directory.

Expand All @@ -21,12 +21,19 @@ The destination directory is organized as follows:
where `season` is `Spring`, `Summer`, `Fall` or `Winter` (depending of photo's date).

## Arguments

- `src_dirs::Vector{String}`: dirctories containing photos to organize.
- `dst_root:String`: the destination directory of organized photos.
- `rm_src::Bool`: delete source photo if true. Useful if coming from SD card.
- `dry_run::Bool`: if true then don't change anything, just print what would happen.

## Example
```julia
julia> backup_photos(["/media/hertz/NIKON/DCIM"], "/home/hertz/Pictures/Pictures", 9999, true)
julia> rm_src=false
julia> dry_run=true
julia> backup_photos(["/media/hertz/NIKON/DCIM"], "/home/hertz/Pictures/Pictures", rm_src, dry_run)
```

## Dependencies

The binary `exiftool` is required and it can be installed on Ubuntu with `apt-get install libimage-exiftool-perl`.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
julia 0.6 0.7-
julia 0.7 2.0-
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: false
Loading

0 comments on commit d2cbd94

Please sign in to comment.