This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 543
/
config.yml
93 lines (65 loc) · 2.4 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
image_config: &image_config
# make sure to set your Docker Hub username & password in CircleCI,
# either as project-specific environment variables
# or as resources in your organization's org-global Context
IMAGE_NAME: # name your image (no spaces please!)
IMAGE_TAG: # give your image a tag (no spaces please!)
# NOTE: if you're modifying this config.yml file manually
# rather than using the included setup script,
# make sure you also add the values of your IMAGE_NAME & IMAGE_TAG variables
# to the `test_image` job (line 55)
LINUX_VERSION: # DEBIAN_JESSIE, DEBIAN_STRETCH, UBUNTU_TRUSTY, or UBUNTU_XENIAL
RUBY_VERSION_NUM: # pick a version from https://cache.ruby-lang.org/pub/ruby
NODE_VERSION_NUM: # pick a version from https://nodejs.org/dist
PYTHON_VERSION_NUM: # pick a version from https://python.org/ftp/python
JAVA: # Java options: true, false
MYSQL_CLIENT: # MySQL options: true, false
POSTGRES_CLIENT: # Postgres options: true, false
DOCKERIZE: # Dockerize options: true, false
BROWSERS: # browser tools (Xvfb, PhantomJS, Firefox, Chrome, Chromedriver): true, false
version: 2
jobs:
build:
machine: true
environment:
<<: *image_config
steps:
- checkout
## - run: bash scripts/generate.sh > Dockerfile
## - run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
## - run: docker build -t $DOCKER_USERNAME/$IMAGE_NAME:$IMAGE_TAG .
## - run: docker push $DOCKER_USERNAME/$IMAGE_NAME:$IMAGE_TAG && sleep 10
## - store_artifacts:
## path: Dockerfile
## test_image:
## docker:
## - image: $DOCKER_USERNAME/(name of image):(image tag)
## environment:
## <<: *image_config
## steps:
## - checkout
## - run:
## name: start Xvfb for phantomjs test
## command: Xvfb :99
## background: true
## - run:
## name: bats tests
## command: |
## mkdir -p test_results/bats
## bats scripts/tests.bats | \
## perl scripts/tap-to-junit.sh > \
## test_results/bats/results.xml
## - store_test_results:
## path: test_results
## - store_artifacts:
## path: test_results
##workflows:
## version: 2
## dockerfile_wizard:
## jobs:
## - build:
## context: org-global
## - test_image:
## context: org-global
## requires:
## - build