Граф коммитов

31 Коммитов

Автор SHA1 Сообщение Дата
Christopher Grebs 07dee02dde
Use docker-compose restart instead of supervisorctl.
* Make also use of setting PYTHONDONTWRITEBYTECODE inside the docker
  image to reduce it's size considerably
* Remove some outdated code-parts
* Rename `olympia` inside our worker image to `olympia-worker`
* remove all build and cache folders after every `make update_deps`
  (which might help avoid any more package update/install ambiquities)

Fixes #7518
2018-02-19 17:47:51 +01:00
Christopher Grebs 02f111b7e2
Fix circleci checkout (#7498)
* Extend git clone with PR support, simplify checkout step

* Don't be quiet about git commands

* Re-add tag support

* Fix no-tag branch
2018-02-06 16:10:22 +01:00
Christopher Grebs ad7e0ba55e
Run exec as root 2018-02-05 10:24:14 +01:00
Christopher Grebs a8edfc2f07
Revert, it's the base docker image :( 2018-02-05 10:22:40 +01:00
Christopher Grebs 99c83896b2
install docker-compose in recommended way 2018-02-05 10:18:46 +01:00
Christopher Grebs a2156e2996
more git experiments 2018-02-05 10:06:57 +01:00
Christopher Grebs 4fd2139813
no cd? 2018-02-05 10:00:54 +01:00
Christopher Grebs d6295ac1b3
So we need that fetch? 2018-02-05 09:57:47 +01:00
Christopher Grebs f330967937
Fix caching, try fix git cloning 2018-02-05 09:53:06 +01:00
Christopher Grebs 2cb355fe51
Indentation 2018-02-05 08:19:36 +01:00
Christopher Grebs a51c633bca
Try manually checking out the repository 2018-02-05 07:55:29 +01:00
Benjamin Forehand Jr 8a646cadc4 Addon Install Test (#6641)
* Use docker-compose>=1.18 and minimal docker-compose config version to 2.3
* Starts ui-tests in Firefox docker container
* Let's the Firefox docker-container hit directly nginx
* makes use of https://github.com/jrbenny35/selenium-firefox/ firefox+selenium image
* makes use of /user-media/ serving directly via nginx for XPI installs
* Adds a helper that creates an installable add-on
* Update `firefox_options` fixture with all options needed to install add-ons with a test signing signature

Fixes #7270 
Fixes #2488
2018-01-12 06:58:00 +01:00
bqbn ac8a390c26
Drop "-e" for "docker login" (#7089)
* Rewrite /app/version.json with correct CIRCLE_BUILD_URL

* Combine build, deploy, and release jobs

This is so that we don't have to touch the image again once it's built.

* Drop "-e" for docker login

CircleCI complains about "unknown shorthand flag: 'e'" probably because
they have upgraded the default docker version.
2017-12-01 09:52:04 -08:00
Christopher Grebs 176383b168 Upgrade to Celery 4 (#6667)
* Update celery, config and dependencies to 4.x

* Remove usage of TaskSet, replace with group(), update `ampq`
* Enable redis on travis for better celery 4.x testing
* Fix lib/celery_tests
* Correct test testing email sending retrying on errors
* Fix celery subtask mocking errors.

* Fix celery broker url env variable

* Integrate watchdog for celery autoreload

* Ensure dependencies are updated for worker and web container.

* Restart all services after the dependency update

* Remove explicit celery loader environment variable.

* Restart all services in web and worker after running 'update_docker'

* Increase sleep time a bit
2017-10-16 11:16:41 +02:00
Mathieu Pillard 43d88b4f55 Revert "Upgrade to Celery 4 (#6625)"
This reverts commit 541688d5f2.

This caused some breakage on dev. We suspect it's because newrelic
hooks into the celery task launching code but does not support
celery 4.x yet.
2017-10-13 00:04:27 +02:00
Christopher Grebs 541688d5f2 Upgrade to Celery 4 (#6625)
* Update celery config to seamlessly upgrade to 4.x

* Update celery initialization for new configs and 4.x

* Update dependencies to celery 4.x

* Fix flake8

* Fix typo

* Remove usage of TaskSet, replace with group(), update `ampq`

* Enable redis on travis for better celery 4.x testing

* Fix more test setting names

* Fix lib/celery_tests

* Correct test testing email sending retrying on errors

* Fix celery subtask mocking errors.

* Fix new line

* Fix celery broker url env variable

* Integrate watchdog for celery autoreload

* Try something weird... ui-tests

* do we need extra hosts?

* more sleep?

* Try logging, try docker run to avoid port collisions

* More debugging

* Cleanup again

* Fix logs?

* Ensure dependencies are updated for worker and web container.

* Remove not functioning log saving for onw

* Restart all services after the dependency update
2017-10-12 21:05:21 +02:00
bqbn 3ca46aab2e Rewrite /app/version.json with correct CIRCLE_BUILD_URL (#6601)
* Rewrite /app/version.json with correct CIRCLE_BUILD_URL

* Combine build, deploy, and release jobs

This is so that we don't have to touch the image again once it's built.
2017-10-06 17:43:42 +02:00
Christopher Grebs 89554ebbe0 fix docker building on circleci 2.0 infrastructure (#6590)
* Actually save the built docker image and load it again before pushing.

* Remove master filter for testing

* Fix naming

* New movie: The Indentation Game

* Set working directory

* re-add filters in preparation for merging
2017-10-05 17:00:43 +02:00
Benjamin Forehand Jr d6bb402a44 Updated UI-tests to run inside of docker and switched to circleci 2.0 (#6457)
* Updated config to use circleci as well as configure ui-tests to run within docker

* Removed hacky certifi installs

* Update requirements to master versions

Fixes #4697 (though not only that)
2017-10-05 13:14:08 +02:00
Benjamin Forehand Jr c1f2db3c19 Added complete configuration to enable UI testing. 2017-03-24 08:38:50 -07:00
bqbn 95841e2aa4 Bypass test explicitly (#4200)
CircleCI runs "make test" by default, which is not we want.
2017-01-03 12:50:41 -08:00
Christopher Grebs bc9d8b05dc Remove the test portion of our circleci builds.
Running our uitests on every pull request breaks them irregularly and
they're badly maintained at the moment.

Let's disable them for now.
2017-01-03 18:41:08 +01:00
bqbn 7d9c3ebbc6 Generate version.json in circle.yml for pipeline v2 (#4168)
Also copy the generated file to /app/version.json in Docker.deploy so it
complies with pipeline v2 standard.
2016-12-22 12:42:41 -08:00
bqbn 75692209c2 Push to dockerhub via circleci (#3932)
* Add deployment step to push to docker hub

* Move docker build to the dependencies step

* Fix typo in file name

* Test pushing in a branch

* Add -e to docker login

* Remove push-to-dockerhub-via-circleci section for pushing
2016-11-04 11:27:09 -07:00
Christopher Grebs 717ca578ce Add configured domain to ALLOWED_HOSTS. Fixes circleci tests and our runserver. (#3918)
* Add configured domain to ALLOWED_HOSTS. Fixes circleci tests and our runserver.
* Correctly map uitests to olympia.dev
2016-11-02 16:56:10 +01:00
Dave Hunt bccd25517a
Copy GeckoDriver log to CircleCI artifacts 2016-09-13 11:17:29 +01:00
Dave Hunt 069b49454d
Update UI tests to use Selenium 3.0.0b2 and GeckoDriver 0.10.0 2016-09-13 11:17:28 +01:00
Dave Hunt da57da9dcb
Use latest Firefox release for UI tests 2016-07-28 11:18:21 +01:00
Dave Hunt fd8ec837ef Move sleep for CircleCI (#3111)
* Move sleep to just after docker-compose up
* Activate debugging for setup-docker.sh
2016-07-28 10:24:57 +01:00
Justin Potts c8422dff0c Enable Marionette on UI tests (#3036) 2016-07-06 19:29:17 +01:00
Dave Hunt 6730f9a9f8 Run UI integration tests in Circle CI 2016-06-28 11:55:22 +01:00