# The first image is the primary container where tests are run with this image as the primary container this is where all steps will run environment: DOCKERHOST: tcp://127. sbt "test-only test.* - exclude broken" version: 2 jobs: build: runs not using Workflows must have a build job as entry point workingdirectory: /aperture directory where steps will run docker: run the steps with Docker - image: circleci/openjdk:8-jdk-stretch. mysql -uroot -proot -e 'DROP DATABASE IF EXISTS test CREATE DATABASE test ' & sudo apt-get -y install mysql-server-5.6 & sudo apt-get -y install software-properties-common & sudo apt-add-repository -y 'deb precise main' sbt clean compile # compile here so that dependencies are cached I would like to run my Circle CI 2.0 build using Open JDK 8 & 9. I use CircleCI to test Scala programs via sbt. Is there something I can change in my CircleCI 2.0 configuration file to give me a better chance of my tests passing? Like, for example, should I be using a different OpenJDK8 image?īelow are my config files - the first is my old circle.yml file for 1.0 and the second is my new config.yml file for 2.0. OpenJDK 8 is present in the CircleCI LXC Container but in order to use it, you need to add the following to your circle.yml file. Circleci is actually kinda cool, it’s easy and you can connect github and bitbucket instantly. It has also a good free plan, for little teams is probably enough. Is there something wrong with my configuration? The actual codebases are exactly the same, which is why I’m so confused as to why certain tests pass under one version of CircleCI and fail under another. You go on circleci because you have been flooded with ads, I mean, everywhere you read that for a great project you should use circleci so there you go. I believe what changed was the circleci docker images tagged as circleci/openjdk:8- upgrade from Java 8u171 to 8u181. The tests that fail are ones that get data from the Facebook API. When I run my tests using my new 2.0 config file, two tests fail. When I run my tests using my old 1.0 config file, they all pass as expected. It appears that the new docker images in CircleCI 2.0 are restricting certain network traffic that wouldn’t have been restricted in CircleCI 1.0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |