2011-02-04 01:40:53 +00:00
|
|
|
all:
|
2017-06-01 16:04:39 +00:00
|
|
|
# to run if you already have a functional android development
|
|
|
|
# environment, and you don't need the one in docker.
|
2011-03-18 01:15:25 +00:00
|
|
|
./check-environment.pl
|
2017-05-31 18:10:20 +00:00
|
|
|
./gradlew assembleRelease
|
2011-02-04 01:40:53 +00:00
|
|
|
|
2014-02-09 01:07:56 +00:00
|
|
|
env:
|
2017-11-14 18:24:52 +00:00
|
|
|
mkdir -p $(HOME)/.gradle
|
|
|
|
mkdir -p $(HOME)/.android
|
2014-02-08 21:58:20 +00:00
|
|
|
docker build -t camlistore/android devenv
|
2014-02-09 01:07:56 +00:00
|
|
|
|
2017-05-31 18:10:20 +00:00
|
|
|
dockerdev:
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
docker run --rm -v $(GOPATH)/src/perkeep.org:/home/gopher/src/perkeep.org -v $(HOME)/.gradle:/home/gopher/.gradle -v $(HOME)/.android:/home/gopher/.android -w /home/gopher/src/perkeep.org/clients/android --name camlidroid -i -t camlistore/android /bin/bash
|
2017-05-31 18:10:20 +00:00
|
|
|
|
2014-02-09 01:07:56 +00:00
|
|
|
dockerdebug:
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
docker run --rm -v $(GOPATH)/src/perkeep.org:/home/gopher/src/perkeep.org -v $(HOME)/.gradle:/home/gopher/.gradle -v $(HOME)/.android:/home/gopher/.android -w /home/gopher/src/perkeep.org/clients/android --name camlidroid -i -t camlistore/android go run build-in-docker.go
|
2014-02-08 21:58:20 +00:00
|
|
|
|
|
|
|
dockerrelease:
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
docker run --rm -v $(GOPATH)/src/perkeep.org:/home/gopher/src/perkeep.org -v $(HOME)/.gradle:/home/gopher/.gradle -v $(HOME)/.android:/home/gopher/.android -w /home/gopher/src/perkeep.org/clients/android --name camlidroid -i -t camlistore/android go run build-in-docker.go -release=true
|
2017-05-31 18:10:20 +00:00
|
|
|
|
2017-06-01 16:04:39 +00:00
|
|
|
# just for documentation, as make is not actually installed in the docker image.
|
|
|
|
debug:
|
|
|
|
# when within the env dev (i.e. after make dockerdev)
|
|
|
|
./gradlew assembleDebug
|
|
|
|
|
2017-05-31 18:10:20 +00:00
|
|
|
installdebug:
|
|
|
|
adb install -r app/build/outputs/apk/app-debug.apk
|
|
|
|
|
|
|
|
install:
|
|
|
|
# TODO(bradfitz): step to sign app/build/outputs/apk/app-release-unsigned.apk
|
|
|
|
# adb install -r app/build/outputs/apk/app-release.apk
|
|
|
|
|
|
|
|
test:
|
|
|
|
# TODO(mpl): can't run the instrumentation tests within docker, since
|
|
|
|
# can't connect to the phone from in there.
|