Makefile 1.2 KB

123456789101112131415161718192021222324252627
  1. gold_docker_image: aggregator
  2. # Set the build context to the current work dir, so we can copy
  3. # the built binary to where we need it.
  4. docker build -t gold-karma-chrome-tests -f ./docker/gold-karma-chrome-tests/Dockerfile .
  5. perf_docker_image: aggregator
  6. # Set the build context to the current work dir, so we can copy
  7. # the built binary to where we need it.
  8. docker build -t perf-karma-chrome-tests -f ./docker/perf-karma-chrome-tests/Dockerfile .
  9. aggregator:
  10. mkdir -p ./tmp
  11. CGO_ENABLED=0 GOOS=linux go build -o ./tmp/gold-aggregator -a ./gold/
  12. mkdir -p ./tmp
  13. CGO_ENABLED=0 GOOS=linux go build -o ./tmp/perf-aggregator -a ./perf/
  14. # Can check CHROME_VERSION with
  15. # docker run karma-chrome-tests /usr/bin/google-chrome-stable --version
  16. CHROME_VERSION=72.0.3626.121_v1
  17. publish_gold_karma_chrome_tests: gold_docker_image
  18. docker tag gold-karma-chrome-tests gcr.io/skia-public/gold-karma-chrome-tests:${CHROME_VERSION}
  19. docker push gcr.io/skia-public/gold-karma-chrome-tests:${CHROME_VERSION}
  20. publish_perf_karma_chrome_tests: perf_docker_image
  21. docker tag perf-karma-chrome-tests gcr.io/skia-public/perf-karma-chrome-tests:${CHROME_VERSION}
  22. docker push gcr.io/skia-public/perf-karma-chrome-tests:${CHROME_VERSION}