@@ -24,29 +24,29 @@ jobs:
2424 - docker build -t docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest .
2525 # push image
2626 - docker push docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
27- - stage : test
28- before_script :
29- - node --version
30- - npm --version
31- - npm install -g newman
32- - newman --version
33- script :
34- # login to github registry
35- - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker.pkg.github.com
36- # pull images
37- - docker pull docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
38- # decrypt the env file
39- - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
40- # Run the backend api
41- - docker run -d -p 5000:5000 --restart always --env-file .env docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
42- # Wait for docker to be up
43- - sleep 10
44- # run newman tests
45- - newman run --color on 'PyMatcha.postman_collection.json'
46- after_script :
47- # stop and remove docker to prevent them from block port at next iteration/test
48- - docker stop $(docker ps -a -q)
49- - docker rm $(docker ps -a -q)
27+ # - stage: test
28+ # before_script:
29+ # - node --version
30+ # - npm --version
31+ # - npm install -g newman
32+ # - newman --version
33+ # script:
34+ # # login to github registry
35+ # - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker.pkg.github.com
36+ # # pull images
37+ # - docker pull docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
38+ # # decrypt the env file
39+ # - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
40+ # # Run the backend api
41+ # - docker run -d -p 5000:5000 --restart always --env-file .env docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
42+ # # Wait for docker to be up
43+ # - sleep 10
44+ # # run newman tests
45+ # - newman run --color on 'PyMatcha.postman_collection.json'
46+ # after_script:
47+ # # stop and remove docker to prevent them from block port at next iteration/test
48+ # - docker stop $(docker ps -a -q)
49+ # - docker rm $(docker ps -a -q)
5050 - stage : lint
5151 before_script :
5252 - pip install -r backend/requirements.txt
0 commit comments