-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (22 loc) · 875 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sudo: required
services:
- docker
env:
global:
- SHA=$(git rev-parse HEAD)
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_install:
- openssl aes-256-cbc -K $encrypted_ad2639faab24_key -iv $encrypted_ad2639faab24_iv -in rackspace_dev.enc -out ./rackspace_dev -d
- curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- sudo mv kubectl /usr/bin/
- sudo chmod 777 /usr/bin/kubectl
- mkdir ~/.kube/ && cp rackspace_dev ~/.kube/config && chmod 400 ~/.kube/config
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t portasanych/react-test -f ./client/Dockerfile.dev ./client
script:
- docker run -e CI=true portasanych/react-test npm test -- --coverage
deploy:
provider: script
script: bash ./deploy.sh
on:
branch: main